craftybox icon indicating copy to clipboard operation
craftybox copied to clipboard

Multiple fixtures attached to a single body

Open sntran opened this issue 13 years ago • 0 comments

Need to support adding more fixtures to the body, probably through calling chain, such as

Crafty.e("Box2D").rectangle(w, h, x, y).circle(radius, x, y).polygon([x1, y1], [x2, y2], [x3, y3])

The question(s) is: does the new fixture/shape need to overlap the current fixture/shape? Otherwise, we would have a really big MBR with empty space in between. Box2D would handle it just fine, but for other Crafty's components, it may cause problem.

sntran avatar May 19 '12 21:05 sntran