Jump to content
• ### What is your GameDev Story?

• Advertisement

# transforming between two coordinate axis

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

If you intended to correct an error in the post then please contact us.

## Recommended Posts

okay, i'm making an oriented bounding box tree class that will eventually be incorporated into an object class (as in, every object will have a bounding box hierarchy). I'm confused about some of the math though. Each bounding box node will have matrix describing how to transform from the parent box: parent box coordinate system * some transformation matrix = child box's coordinate system (I hope i explained that correctly). I'm stuck on the construction of the transformation matrix given the two coordinate systems. The best i can come up with is calculate the angles between each of the axis and construct a transformation matrix based on euler angles but it seems like there should be an easier way. The reason i'm doing it this way and not storing a static coordinate system is that if the model is translated or deformed or whatever then the bounding box heirarchy will won't have to be modified (like skeletal animation i guess). Any help is greatly appreciated. Thank yee.

#### Share this post

##### Share on other sites
Advertisement
The axises of a coordinate system are really just a basis for a vector space. When you want to convert from one basis to another basis (of the same vector space) what you need is commenly known as a change of basis matrix. Google should help you from there it would be a fair amount to type out here.

#### Share this post

##### Share on other sites

• Advertisement
• Advertisement
• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

(You must login to your GameDev.net account.)

• ### Popular Now

• 28
• 16
• 10
• 10
• 11
• Advertisement
• ### Forum Statistics

• Total Topics
634109
• Total Posts
3015556
×

## Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!