Captain Cody Posted November 28, 2016 Share Posted November 28, 2016 How would I get the angle between two x,y,z offsets? I'm working on a custom train track system for the map I am working on, and need to make the train point at the location it is heading. Meaning I need to get the rotation offsets between the train position and the track position. Link to comment
Addlibs Posted November 28, 2016 Share Posted November 28, 2016 Pretty sure this function will help (at least with the Z axis rotation) https://wiki.multitheftauto.com/wiki/FindRotation Link to comment
Captain Cody Posted November 29, 2016 Author Share Posted November 29, 2016 Found that function, wasn't exactly what I needed because I'm using move object, but after mathing for a couple of hours I finally got it. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now