Hi!
Why i can’t directly rotate rigidbody after applyImpulse, and while it has a linear velocity?
Is it any way to apply impulse and rotate entity forward by move direction?
Thanks!
Hi @seryngya and welcome!
Not exactly sure what you mean, but you can rotate a rigidbody using teleport()
.
https://developer.playcanvas.com/en/api/pc.RigidBodyComponent.html#teleport
Maybe the example project below can help you too.
https://playcanvas.com/project/808772/overview/look-at-with-physics
1 Like
More information and abilities on the page below.
https://developer.playcanvas.com/en/tutorials/Using-forces-on-rigid-bodies/
Thanks for answer!
This is not best way for me, i trying to realize the arrow fly so i have rotate rigid body to sharp eadge ahead
I found good option in this exampe PlayCanvas 3D HTML5 Game Engine , and litle bit improve it for me with teleport
1 Like