My first language is finnish...
I can't find anything good from this forum to solve this problem. I have MetaTriangleSelector which has two TriangleSelectors and I have CollisionResponseAnimator. I want to know if the other TriangleSelector and camera collide.
Is model collided with model
Hmm, I mean need something like this.
Code: Select all
if (collisiondetected(selector, camera))
{
hit()
}
ISceneCollisionManager::getCollisionResultPosition() can help. It will give you the new position of a moving sphere. If a collision occured, the position returned would be different than the position that you passed in.
You could also copy/paste the CCollisionManager::collideWithWorld() method and modify it to fit your needs.
If your selector represents a single convex object, you could just do a bounding box collision test.
Travis
You could also copy/paste the CCollisionManager::collideWithWorld() method and modify it to fit your needs.
If your selector represents a single convex object, you could just do a bounding box collision test.
Travis