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,
static objects and collision detection
-
- Posts: 7
- Joined: Mon Jun 11, 2012 10:31 am
Re: static objects and collision detection
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.
-
- Posts: 2
- Joined: Tue Jun 19, 2012 4:46 pm
Re: static objects and collision detection
awesome, thanks.Dalorin wrote:Just give the rigid body a mass of 0 and set the CF_STATIC_OBJECT collision flag.