0
\$\begingroup\$

In Unity, I have a normal cube with a rigidbody component. I'm listening to keyboard input and calling AddTorque with extremely high values when a key is pressed. My goal is to make a merry-go round type of thing, that the player can repeatedly increase the speed of. The current problem is that I cannot achieve a high enough speed for the rotation. Even with 1 million torque on the y-axis applied, it will look slow. It doesn't look like the really fast rotation of a merry go round.

Here's a video showing it: https://imgur.com/a/DKaJIin

enter image description here

\$\endgroup\$

1 Answer 1

3
\$\begingroup\$

By default, Unity Rigidbodies have a maximum angular velocity to avoid numerical instability. You can adjust this with Rigidbody.maxAngularVelocity.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Couldn't this also happen when an object rotates like exactly ½ (180°) or 1 radian (360°) in one frame? \$\endgroup\$
    – CheckerT
    Commented Jul 3 at 4:29
  • \$\begingroup\$ @CheckerT Yes, that is a good point! Kypoa said it "look[s] slow", rather than not rotating at all, but that could also be caused by rotating slightly more than 180° or 360°. \$\endgroup\$
    – Kevin
    Commented Jul 3 at 20:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .