other ways for collision detection
Posted: Thu Jul 20, 2006 6:54 am
Hello everybody!I have a question about collision detection:
I know how to create CollisionResponseAnimator but it only checks the collision and repsonse the object by not moving it.But i want to when my camera collides with an object i want that object disappear.I've tried many things but i couldn't do it.
And that was my code:
But it only works when i get very close to get the object.
How can i do it?Thanks in advance!
I know how to create CollisionResponseAnimator but it only checks the collision and repsonse the object by not moving it.But i want to when my camera collides with an object i want that object disappear.I've tried many things but i couldn't do it.
And that was my code:
Code: Select all
if (camera->getPosition()==object->getPosition)
{
//blablabla
}
How can i do it?Thanks in advance!