You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple car (half length = 3, half width = 2, half height = 0.5), with an offset center of mass -half height, copied from the Vehicle Constraints test. I am trying to rotate it around 3 axes by adding constant angular impulse (AddAngularImpulse).
Maximum angular velocity is set to 6 rad/s and I provide a large enough impulse to test how long it takes for each axis to reach the maximum angular velocity.
Due to (i am guessing here) rotational inertia (roll axis (or the long axis) being less resistant to rotation than pitch axis), it takes lesser amount of time to reach maximum angular velocity on roll axis. This sounds ok and intuitive so far. Note that at this point during my tests, the car does not have any initial rotation applied to it (it looks at the +Z direction).
However, when if i rotate the car around 90 degrees to the left or right (car's forward direction is now +X or -X) and apply a rolling impulse again, now the amount of time it takes to reach maximum angular velocity is not the same. This must be because the roll axis is now not the Z axis, but +X or -X. My guess is this is an issue of AddAngularImpulse requiring you to use "world" space and not the "local" space. This is also true for pitch and yaw.
My intention is to roll (or pitch/yaw) the car around its 3 axes separetely and have them behave the same regardless of the initial rotation in the world.
Am I thinking this correct?
Thank you
The text was updated successfully, but these errors were encountered:
Repository owner
locked and limited conversation to collaborators
Jan 3, 2024
Hi,
I have a simple car (half length = 3, half width = 2, half height = 0.5), with an offset center of mass -half height, copied from the Vehicle Constraints test. I am trying to rotate it around 3 axes by adding constant angular impulse (AddAngularImpulse).
Maximum angular velocity is set to
6
rad/s and I provide a large enough impulse to test how long it takes for each axis to reach the maximum angular velocity.Due to (i am guessing here) rotational inertia (roll axis (or the long axis) being less resistant to rotation than pitch axis), it takes lesser amount of time to reach maximum angular velocity on roll axis. This sounds ok and intuitive so far. Note that at this point during my tests, the car does not have any initial rotation applied to it (it looks at the +Z direction).
However, when if i rotate the car around 90 degrees to the left or right (car's forward direction is now +X or -X) and apply a rolling impulse again, now the amount of time it takes to reach maximum angular velocity is not the same. This must be because the roll axis is now not the Z axis, but +X or -X. My guess is this is an issue of AddAngularImpulse requiring you to use "world" space and not the "local" space. This is also true for pitch and yaw.
My intention is to roll (or pitch/yaw) the car around its 3 axes separetely and have them behave the same regardless of the initial rotation in the world.
Am I thinking this correct?
Thank you
The text was updated successfully, but these errors were encountered: