Limiting speed of rotation.
RabidParrot
Formally RabidParrot.Member Posts: 956
I know we are able to limit the linear velocity but does anyone know if we can set a cap to the rotation speed?
Thanks
Comments
@RabidParrot Create a self integer attribute self.RotationSpeed
Place a timer every 0.5 seconds change RotationSpeed to RotationSpeed + 1
Create a rule if self.RotationSpeed >= 10
Constrain self.rotation to self.rotation + 10
Otherwise
Constrain self.rotation to self.rotation+ self.rotationSpeed
Not sure if its the best way to do it but it works
Thanks for your response. Unfortunately I don't think that that will help me achieve what I am looking for. I ended up just constraining the angular velocity to 0 when the object isn't touching the ground or any of the other actors.
Thanks!