Object rotation

Hello. In my game, the car moves constantly straight and when you click on the arrows, it rotate on the axis in the desired direction. I have not delved into the topic yet, please show me an example of the code with such a rotation on the axis, so that it is easier to understand the example. Thank you in advance.

Hello @sergey_ch,
It would be great if you can share your project link. So we can take a look…

But anyway you can check this Vehicle Physics Project as well…
https://playcanvas.com/project/643289/overview/vehicle-physics

I hope it helps…

1 Like