long title short, i need help with turret scripting???
Asked by
4 years ago Edited 4 years ago
Essentially, I have this turret and it is working fine excpet for the gun iteslf.
\The turret workss by rotationg on its base to face the target. Then, the gun will use an x rotation to face the target so it can shoot. How would i go about calculating the angle i need for the gun thing to face the target, after the base is facing its zy coordinates? Once again, gun can only rotate on x axis.
Help is needed, thx.