# OBB again

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

## Recommended Posts

##### Share on other sites
Hi there.

Usually an OBB is represented using a center point and three vectors representing
it's orientation and dimension and all of them are perpendicular to each other.
Think of it like a rotated coordinate system where the origin is the box's center.
These are the extension vectors.
For performing SAT(Separating Axis Theorem) there's lots of information on the web.
Clicky 1
Clicky 2

Cheers.

##### Share on other sites
Hello,
U mean i have to do this:

Center - X = vector from centerpoint to first point
Center - Y = vector from centerpoint to second point
Center - Z = vector from centerpoint to third point

?

greetings,
Wei

##### Share on other sites
Not quite...

Like when you set your camera using look at camera
you have up,right,front to represent the camera orientation, the same goes for OBB.

##### Share on other sites
thanks again, but this dont helps me much. :(
I know, in OpenGl i can use the GLlookAt, then my camera looks at this
point. but this still helps me creating a obb.

Wei

##### Share on other sites
From what do you want the OBB to be created from?
If you have somthing like an enity that stores it's position and orientation,
it is just a matter of using this orientation and the dimensions of it's AABB to
construct the three extent vectors for the OBB.

##### Share on other sites
want to create it from these 3 points and the center point.

1. 1
Rutin
37
2. 2
3. 3
4. 4
5. 5

• 11
• 10
• 13
• 104
• 11
• ### Forum Statistics

• Total Topics
632978
• Total Posts
3009681
• ### Who's Online (See full list)

There are no registered users currently online

×