jchmack
29-10-2007 01:57:08
Lets say i have 2 bodies.
NxOgre will tell me when they collide automatically. But if they start out intersecting or are teleported (via body::setposition) into an overlapping position NxOgre will not tell me.
How can i manually test if body a+b are colliding without a collision callback.
Edit: For now i am assuming that i will use simple collision Shapes (cube,Sphere,Capsule). And that the more complex objects (like the level) will be static and i can just use a collision callback for those.
a = mScene->createBody("cube.1m.mesh",new NxOgre::CubeShape(1,1 ,1),NxOgre::Pose(Input + Vector3(0,1,0)), Params);
b = mScene->createBody("cube.1m.mesh",new NxOgre::CubeShape(1,1 ,1),NxOgre::Pose(Input + Vector3(0,1,0)), Params);
NxOgre will tell me when they collide automatically. But if they start out intersecting or are teleported (via body::setposition) into an overlapping position NxOgre will not tell me.
How can i manually test if body a+b are colliding without a collision callback.
Edit: For now i am assuming that i will use simple collision Shapes (cube,Sphere,Capsule). And that the more complex objects (like the level) will be static and i can just use a collision callback for those.