Hello everyone,
I am building a shooter game and I need to create dynamic bodies (bullets) that collide with other dynamic bodies (players) without making them react to the force (without pushing the players away).
the sensor attribute allows the body to AVOID affecting other bodies, triggering only the contactlistener. That's just what I need.
the bullet attribute allows CCD so there's no tunneling, making sure players get damaged. That's perfect.
Problem is: the sensor attribute seems to completely OVERRIDE the CCD ability of bullet-bodies and makes the bodies tunnel, thus allowing bullets to just go through other players and avoid damage. It happens between dynamic and static bodies alike.
I've tried to play with all kinds of values, but there's just no way to see it working on my side. Using Box2D 2.1A for Flash10.
Please help!
I am building a shooter game and I need to create dynamic bodies (bullets) that collide with other dynamic bodies (players) without making them react to the force (without pushing the players away).
the sensor attribute allows the body to AVOID affecting other bodies, triggering only the contactlistener. That's just what I need.
the bullet attribute allows CCD so there's no tunneling, making sure players get damaged. That's perfect.
Problem is: the sensor attribute seems to completely OVERRIDE the CCD ability of bullet-bodies and makes the bodies tunnel, thus allowing bullets to just go through other players and avoid damage. It happens between dynamic and static bodies alike.
I've tried to play with all kinds of values, but there's just no way to see it working on my side. Using Box2D 2.1A for Flash10.
Please help!