1
\$\begingroup\$

I find it hard to determine the wheel RPM since I'm only making a simple 2D game of rotating object via Z-axis. I wanna try this solution but I got no change since I'm trying to find the RPM from a game object that has a rigid body 2D and a circle collider. I decided to think of something more simple but alternate solution. I'm a bit good at math but not much. Took around to calculate but no luck yet. I want to know possibilities of checking its rotation from transform properties, figuring out yet about 6 degrees per second equivalent to 1 RPM as said from the link. I used the method transform.Rotate() for rotation speed. Also, when the rotation value reaches beyond 360, clockwise or counter-clockwise, sometimes it goes back either 0 or a negative value and I have to maintain total degree so that I can compute for the overall RPM. Please help me.

Re-direct from my original question: http://answers.unity3d.com/questions/1123755/how-to-find-or-compute-or-look-for-overallmax-rpm.html

\$\endgroup\$
11
  • \$\begingroup\$ what's wrong with using Angular velocity? \$\endgroup\$
    – Ali1S232
    Jan 11 '16 at 3:24
  • \$\begingroup\$ I'm not gonna use the RigidBody. I'm focusing the speed spin rate by obtaining the rotation from Transform properties only. \$\endgroup\$ Jan 11 '16 at 3:31
  • \$\begingroup\$ Also, I'm in a 2D environment. I'm using the 2D colliders and a RigidBody2D. However, I'm not gonna obtain degrees from RigidBody2D and instead I'm obtaining the rotation degree from Transform properties so that I can compute for the max or overall RPM. \$\endgroup\$ Jan 11 '16 at 3:35
  • \$\begingroup\$ RigidBody2D also has similar function, again similarly named Angular velocity \$\endgroup\$
    – Ali1S232
    Jan 11 '16 at 4:08
  • 1
    \$\begingroup\$ The Rigidbody only tracks physics speed. If you set a rotation using the Transform properties, the Rigidbody doesn't get an impulse (but it can muck with interpolation, so generally if you're using Rigidbodies you should drive all control through them, don't muck with the Transform directly). If you're rotating your object directly with Transform.Rotate though, you don't need to infer the RPM from the resulting rotation, because you're the one driving the motion - you can just take the rotational increment you're applying and adjust for the time delta. \$\endgroup\$
    – DMGregory
    Jun 6 '17 at 3:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.