ScriptReference/Rigidbody2D #601
Replies: 1 comment
-
|
If you manually set a Rigidbody2D's position or rotation using the respective properties or SetRotation, and then you call MovePosition or MoveRotation before a physics step is run, the move instructions will be ignored! If you need this functionality to work, run Physics2D.Simulate(0f) before calling the move methods. Untested, but it's likely the standard Rigidbody has the same behaviour. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/Rigidbody2D
https://docs.unity3d.com/ScriptReference/Rigidbody2D.html
Beta Was this translation helpful? Give feedback.
All reactions