is there an easy way to get the rotation from an Entity to the mousecursor?
(like an Tank cannon)
setting the rotation is with getchild + setrotation easy but how do i get an value for the rotation to the mouse with an 3rd person camera?
the yellow sphere is the mousecursor in picture...
So the camera follows the tank and the camera follows it. Can you rotate this camera with the mouse like more 3rd person games or is the camera always at the tanks back and rotates when the tank rotates OR rotates with the gun on top of the tank?
So with this are you saying you want the 3D gun on top of the tank to rotate around the Y axis based on where the 2D mouse is around the gun?