-
If don’t move, keeps rotating.
Hey Guys,
I did part of a expression, but I don’t know how to solve part of it.
I need that the rotation keeps going when you don’t have movement on “b” (y pos). I just knew how to do it when the Pos is specific, like now = 640.The idea is when not moving rotate 20º each 1sec, if is moving rotate 1º per pixel.
Thank you in advance,
Gusa = time*20;
b = transform.position[1]*-1;
p = transform.position[1];
if (p == 640) {a
}else{
b
}