I have weapons on the vehicle that I want to point at the mouse cursor, however it seems to be offset more and more as player moves away from the start position? I’ve tried changing self.global_position to a self.position but that resulted in even weirder behavior of the weapon bodies, what am I doing wrong?
Thanks for the reply! Did you mean something like this?
This results in a stuttery rotation, most of it is just not being executed because rayResult == 0 which implies that the ray isn’t hitting anything to begin with and rarely it does hit something (?) which just shifts the rotation to an unrealistic one, are there any debug tools to preview how rays are casted with some lines? That could provide to be useful right now.