Hello there. I’m not a newbe at lua, but I never have been good with angles and its logic.
I’m trying to turn 2 entities, constrained with an axis, to a certain target.
My version works pretty fine, unless you change the roll of that thing.
It will somehow point to the direction of the target, but not directly, sometimes 30° off.
By the way, target is the view of the player.
My version: (simplified)
–entity 1, turns on y-axis (pitch)
–entity 2, turns on z-axis (yaw)
I would appreciate it if somebody could help me with that one.