li574000
23-03-2009 09:28:09
i use TreeColllision to judge if two object is collide.i use this function CollisionCollide().
but i found if the one object is fully inside another, it returen 0.meaning there is no collide,this is not i want .how i know one object is fully in another?
melven
23-03-2009 13:07:00
li574000
24-03-2009 09:41:40
another question, if one collision is just only a plane, when i use OgreNewt::CollisionTools::CollisionCollide(),
it get a error,why?
melven
24-03-2009 10:20:36
I would have suspected that newton just doesn't recognize a contact, you should use "reasonable" sizes, so you could make a box out of your plane with a thickness of about 0.01 or so... if collisions are thinner, then other objects often "tunnel" through it.
If you use newton 2.0 beta, you yould also use a HeightFieldCollision ( NewtonCreateHeightFieldCollision ), but there is no implementation of this in OgreNewt yet (though it wouldn't be much work!).