ignore collision response on a rigidbody

Post Reply
TeKilla
Posts: 3
Joined: Thu Aug 14, 2014 7:35 am

ignore collision response on a rigidbody

Post by TeKilla »

Hello,

Im facing a problem using bullet physics, currently, I have a rigidbody named X (with no gravity and a mass of 0) which i can destroy by shooting at it. When I shoot on it, it create cubes which are pushed into X to make them fly away, like an explosion.

The problem is that those particles are actually pushing back X when they collide with it and I would like to avoid this.

Same goes if I drop a cube on top X, when it touch, X is pushed down and fall to the ground.


I tried using the addContact callback to detect collision between rigidbody of type X and particles, and cancel the applied impulse, the restitution etc...
I also tried custom collision filter to disable collision response for X, but i couldn't manage to do it.

I would like to know if bullet provide a way to deal with my problem or if there is kind of a trick to do it.


Thank's and sorry for my english mistakes :)
Post Reply