Jump to content

Point positions to rotation


Phat Looser

Recommended Posts

What I am searching for is the mathematic definition of the object angles in MTA and San Andreas.

To visualize it, I am thinking about three points in 3D, and I want to use those three points to calculate the x,y and z rotation with knowledge of the position of these three points.

An example would be three airplanes which "carry" a box between them, and depending on their position (depending on the position of the airplanes), the box has to rotate.

If one of the planes moves forward, the box has to change the x rotation, thats as far as I got.

Using the euler theorem, I wanted to ask:

When calculating the object rotation, do you multiply Ax*Ay*Az, or how is the rotation calculated?

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...