AddRigidBody or AddCollisionObject?

Zimbarbo
Posts: 14
Joined: Thu Jun 28, 2007 2:26 pm

AddRigidBody or AddCollisionObject?

Post by Zimbarbo »

Based on the examples given with the SDK, I have always called AddRigidBody. However, I am interested in making it so two of my objects do not collide, and looking into collision groups on these forums showed everyone calling AddCollisionObject which has the parameters of collisiongroup and flags. Does anyone have any information about what the difference between the two are? Thanks!
DevO
Posts: 95
Joined: Fri Mar 31, 2006 7:13 pm

Post by DevO »

AddRigidBody will call internally AddCollisionObject but before it will set
collision groups for you.
Just look to the code of AddRigidBody how it works.

So if you want to change collision groups then just call AddCollisionObject with you own parameters.