Node rotation when mouse clicked direction

am started learning cocos 3d how to calculate the degree for player to rotate teh player towards mouse touch location

Hi,

I recommend looking at my 3D First Person Controls tutorial:

You can change to code to work with on click and to change the players rotation instead of the camera depending on what you’re aiming to do.

Thanks

ok i will try thanks for suggestion :slight_smile: