Getposition help

Hi Everyone, just wanna seek some help on how can we force the vehicle controller to go or just look into a certain location when clicked. thanks in advance PlayCanvas | HTML5 Game Engine

Hi @Genesis_Miranda,

Here is a nice example on how to move and rotate an object towards a point:

https://developer.playcanvas.com/en/tutorials/point-and-click-movement/

Note that you may have to set your rigid body to kinematic for the duration of the animation. Since right now it’s a dynamic body moved by forces.

2 Likes

Thank you sir