Skip to main content
Tweeted twitter.com/#!/StackGameDev/status/301726028198469632

Body collide Collision Filtering in Box2D

I want to make it like in Box2d world.

I have four bodies in my Box2D World. each Each are polygon shape., with some physics parameterparameters.

Now when the game start, I need one of the bodybodies from the World BodyA which should(BodyA) to not be collideallowed to BodyBcollide with another (BodyB). But it It should be allowed to collide with others too,.

So, I want it likeTo clarify, BodyA and BodyB does notcannot collide with each other, But theybut can collide with rest of the bodies in the Box2D world.

How could make like this kind of mechanism in Box2d ?

Please help me about this query. Thanks & Regards,

Body collide in Box2D

I want to make it like in Box2d world.

I have four bodies in World. each are polygon shape. with some physics parameter.

Now when game start, I need one of the body from World BodyA which should not be collide to BodyB. But it should be collide with others too,

So, I want it like, BodyA and BodyB does not collide each other, But they collide with rest of the bodies in Box2D.

How could make like this kind of mechanism in Box2d ?

Please help me about this query. Thanks & Regards,

Collision Filtering in Box2D

I have four bodies in my Box2D World. Each are polygon shape, with some physics parameters.

Now when the game start, I need one of the bodies from the World (BodyA) to not be allowed to collide with another (BodyB). It should be allowed to collide with others.

To clarify, BodyA and BodyB cannot collide with each other, but can collide with rest of the bodies in the Box2D world.

How could make this kind of mechanism in Box2d ?

Please help me about this query. Thanks & Regards,

added 86 characters in body
Source Link
Solid Soft
  • 405
  • 1
  • 5
  • 15

I have big issuewant to make it like in Box2d world.

I have four bodies in World. each are polygon shape. with some physics parameter.

Now when game start, I need one of the body from World BodyA which doesshould not be collide to BodyB. But it should be collide with others too,

So, I want it like, BodyA and BodyB does not collide each other, But they collide with rest of the bodies in Box2D.

How could make like this kind of mechanism in Box2d ?

Please help me about this query. Thanks & Regards,

I have big issue in Box2d world.

I have four bodies in World. each are polygon shape. with some physics parameter.

Now when game start, I need one of the body from World BodyA which does not collide to BodyB. But it should be collide with others too,

So BodyA and BodyB does not collide each other, But they collide with rest of the bodies in Box2D.

Please help me about this query. Thanks & Regards,

I want to make it like in Box2d world.

I have four bodies in World. each are polygon shape. with some physics parameter.

Now when game start, I need one of the body from World BodyA which should not be collide to BodyB. But it should be collide with others too,

So, I want it like, BodyA and BodyB does not collide each other, But they collide with rest of the bodies in Box2D.

How could make like this kind of mechanism in Box2d ?

Please help me about this query. Thanks & Regards,

Source Link
Solid Soft
  • 405
  • 1
  • 5
  • 15

Body collide in Box2D

I have big issue in Box2d world.

I have four bodies in World. each are polygon shape. with some physics parameter.

Now when game start, I need one of the body from World BodyA which does not collide to BodyB. But it should be collide with others too,

So BodyA and BodyB does not collide each other, But they collide with rest of the bodies in Box2D.

Please help me about this query. Thanks & Regards,