# Rotation question

This topic is 5158 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

If I want to make an object rotate its self, such as box. I don't want the object rotate parrelle with Y axis, X axis or Z axis. I want it rotate parrelle with custom axis, such as (5,6,7)----(10,12,14) axis.It is possible to rotate like this ?

##### Share on other sites
The conceptually easy way to do it is:

Step one: rotate the object so that an axis (for example the Y axis) aligns with your new axis.
Step two: perform the rotation about the newly aligned axis (y in this case).
Step three: Undo step one by rotating by the inverse of the matrix in step 1.

You can concatenate this to one matrix; just remember the transforms are applied right to left, so its M3*M2*M1.

Thank you.

1. 1
Rutin
25
2. 2
3. 3
4. 4
5. 5

• 10
• 13
• 19
• 14
• 9
• ### Forum Statistics

• Total Topics
632942
• Total Posts
3009344
• ### Who's Online (See full list)

There are no registered users currently online

×