Rotation + movement(mouse) in 3D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Anwarus

I trying to implement movement like in this docs but in 3D space using KinematicBody. The main problem I face is how to translate mouse position to be relative to player body position. From viewport I can get mouse position, make it a Vector3 (camera is above the player) but it gives me coordinates in pixels (I suppose). Is there any way to get this position in ingame units or get body position in pixels relative to vector or maybe there is easier way I can’t figure out? Thanks for any help :slight_smile:

I’m starting playing with 3D so thanks in advance for indulgence.

:bust_in_silhouette: Reply From: Frog studio

You can learn how to implement basic movement and rotation in 3d by following this Github link: