Jump to content

[SOLVED] many characters collision with env(terrain, building etc) but not with themselves


Recommended Posts

Posted

how can I do this? i checked the collision mask, but it seems no help.

  • 1 year later...
Posted

Did it through actor, is it correct?

Body body = actor.getBody();
forloop(int i = 0; body.getNumShapes()) {
Shape shape = body.getShape(i);
shape.setExclusionMask(2);
}


Posted

Yep, you need to use exclusion masks if you do not want characters to collide with each other.

×
×
  • Create New...