Player's rotation bugs when it goes 180°
-
https://play.creaticode.com/projects/679bd3b9e83001fc08db4cae
I can’t figure out the problem
(a & d to rotate, W to move)
-
To make an object rotate, there are 2 separate methods, but you can not mix them:
Method 1: operate on the mesh directly, such as using the “set speed” block
Method 2: delegate the control to the 3D physics engine, then set the rotation speed on the physics body.
In your case, you are using the physics engine, so the “set speed” block won’t work.
In general, it is much easier to operate on the mesh object yourself instead of using the physics engine, since you have much more control. You only need to use the physics engine when you need very realistic physics simulations.
-
@info-creaticode Can you make an example? I don’t completely understand what you mean
-
Sure. To make the avatar rotate, since it already has physics body, you need to use this block at the bottom:
-
@info-creaticode will this help the player turn it’s full rotation without snapping back to the original angle?
-
Can you try it and let us know if there is any problem? You can also try to get help from our AI assistant.