I need help with my code, when I put in the code for apply impulse it only moves the direction it set for but how do I have it that it moves with the camera. For Example if do “applyImpulse(0,0,4)” it would move 4 z but not the way of the camera.
Here’s the link to the game,
https://playcanvas.com/editor/scene/1065048
Hi @Kayenjay,
You need to direct your impulse to face the camera forward vector. Check how this example does it:
https://developer.playcanvas.com/en/tutorials/first-person-movement/