First step to go is to test whether a point is intersecting with the box.
I can't seem to get the orientation and position of a SimpleRenderable. object..
where it is derived from. And there seems to be nothing to call to work
with intersections intrinsically with OBBoxRenderables.
Any ideas?
Thanks
Jack
http://www.ogre3d.org/tikiwiki/tiki-ind ... unding+Box
Code: Select all
bool OBBoxRenderable::Intersect(Ogre::Vector3& point) {
// from position/orientation to matrix
Matrix4 mat(this->getOrientation());
mat.setTrans(this->getPosition());
mat = mat.inverse();
}
