How do i make a rigidbody which only collides with certain parts of the dynamic world?
In my case these are the boundingboxes of my player. I'm using a sphere to keep him in the world and boxes for the certain bodyparts. But i don't want the bodyboxes to collide with the rest of the world....only with bullets....but the bullets should collide with the world but not with the player sphere.
Any ideas?
Materials
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Materials
Are you using Bullet? If so, please post in the Bullet forum.Sudi wrote:How do i make a rigidbody which only collides with certain parts of the dynamic world?
In my case these are the boundingboxes of my player. I'm using a sphere to keep him in the world and boxes for the certain bodyparts. But i don't want the bodyboxes to collide with the rest of the world....only with bullets....but the bullets should collide with the world but not with the player sphere.
Any ideas?
For now I assume you are using Bullet, so I move your posting.
You can setup collision filter flags/groups to enable/disable collisions between groups of objects.
Not sure if this is already documented or available in a sample, it's on the todo.
Hope this helps,
Erwin
-
- Posts: 7
- Joined: Tue Jan 16, 2007 11:09 pm
-
- Posts: 7
- Joined: Tue Jan 16, 2007 11:09 pm