static objects and collision detection

sorressean
Posts: 2
Joined: Tue Jun 19, 2012 4:46 pm

static objects and collision detection

Post by sorressean »

Hello:
I have a couple questions. I'm wrapping up the rigid body class so that I can make static objects. How would I set it up so that the object can not move at all?
Also, I am looking at setting up the collision detection. Is there a way to avoid the static objects? For example, there would be no need to check if a static object and another static object would collide.
Thanks,
Dalorin
Posts: 7
Joined: Mon Jun 11, 2012 10:31 am

Re: static objects and collision detection

Post by Dalorin »

Just give the rigid body a mass of 0 and set the CF_STATIC_OBJECT collision flag. Not sure about disabling collision between static objects.
sorressean
Posts: 2
Joined: Tue Jun 19, 2012 4:46 pm

Re: static objects and collision detection

Post by sorressean »

Dalorin wrote:Just give the rigid body a mass of 0 and set the CF_STATIC_OBJECT collision flag.
awesome, thanks.