# Box rotation

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

## Recommended Posts

Hello. If I have a box ABCDEFGH[A(X,Y,Z),B(X,Y,Z)...H(X,Y,Z)] and I roteate it around XYZ axis,how can I calculate new coordinates of points ABCDEFGH? Thanks.

##### Share on other sites
Transforming the box corners is really just like transforming any geometry (such as a mesh model). The most common way to do this is to construct a matrix representing the desired transform, and then apply it to each vertex (the box corners, in this case) in turn.

May I ask what you need the transformed corners for? (I ask because if it's for collision detection or frustum culling, you most likely don't actually need the transformed corners.)

##### Share on other sites
Quote:
You don't need to compute the transformed vertices of the box in order to perform frustum culling; for boxes (both oriented and axis-aligned), you can perform the box-plane test more directly by comparing the projected radius of the box to the distance from the box center to the plane.

1. 1
Rutin
33
2. 2
3. 3
4. 4
5. 5

• 13
• 9
• 9
• 9
• 14
• ### Forum Statistics

• Total Topics
633329
• Total Posts
3011383
• ### Who's Online (See full list)

There are no registered users currently online

×