Collision Detection

Post Reply
stnal
Posts: 7
Joined: Wed Nov 10, 2010 8:57 am

Collision Detection

Post by stnal »

Hi all,

In case I'm using only the collision detection features, how can I update the state each frame?
What functions should be called?

Thanks,
Stan
ramsampath
Posts: 19
Joined: Fri Sep 05, 2008 8:54 pm

Re: Collision Detection

Post by ramsampath »

I am assuming this is what you want

Code: Select all

cworld->performDiscreteCollisionDetection();
and iterate through the collision manifolds

from the dispatcher

Code: Select all

cworld->getDispatcher();
There are some demos which do this. CollisionInterfaceDemo is something which does this.

Thanks
Ram.
Post Reply