Rotate Turret Randomly

hey there!

i have a turret that i want to rotate randomly then stops for a sec then rotate again, for example: it suppose to rotate to the right then stops for a second or two then maybe rotate to left then stops for a second then repeat. for example: to the right then left then left then right then maybe eight or left and so on

i made this but it keeps rotating like crazy with no stops:

Two things I can note to help you along your way.

  1. You can utilize a delay node to give that 1-2 second pause
  2. You probably want to multiply your rotation value by DeltaSeconds to smooth out the rotation, cause right now you’re rotating by some amount of degress per frame, which is frame-dependent, rather than per second, which would be frame independent.
1 Like

Thanks Tuomo, i’ll look into it

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms