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)
-
https://play.creaticode.com/projects/679bd3b9e83001fc08db4cae
I can’t figure out the problem
(a & d to rotate, W to move)
@011830-0a42ef84
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.
-
@011830-0a42ef84
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
-
@info-creaticode Can you make an example? I don’t completely understand what you mean
@011830-0a42ef84
Sure. To make the avatar rotate, since it already has physics body, you need to use this block at the bottom:

-
@011830-0a42ef84
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?
-
@info-creaticode will this help the player turn it’s full rotation without snapping back to the original angle?
@011830-0a42ef84
Can you try it and let us know if there is any problem? You can also try to get help from our AI assistant.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login