Hello, I’m creating a war game. I made a “turret” that will work with HingeConstraints.
I want to make so base’s and barrel’s HingeConstraint TargetAngle face towards player’s mouse, but I’m quite bad at math. (I only need the math part)
This is how the “turret” looks like: (It’s just a test model)
The cylindrical part is a base, that has HingeConstraint in it, and should rotate the turret horizontally.
The barrel should rotate vertically.
I searched for solutions on dev forum, but I couldn’t find any working.
Any help is apperciated.