I've been using Box2d to make a platform game using static edges generated from svg paths for the level geometry. The static edges look perfect for what I want do not perform as expected. Today I was playing around with Chipmunk's examples and came across one showing off what I think are called beveled line segments. These work the way that I was hoping static edges would, most importantly stopping objects from passing through on both sides. I was wondering if their are any plans to add line segments like Chipmunk's to Box2d?
Beveled line segments like in Chipmunk
Bugs, Requests, and FeedbackFor those of us who haven't used Chipmunk, could you explain what a 'beveled line segment' collision shape is?
Also, what version of Box2D are you using? (I ask because the current C++ version does have support for 'two-sided' line segment collision shapes, which seems to be what you're after.)
Also, what version of Box2D are you using? (I ask because the current C++ version does have support for 'two-sided' line segment collision shapes, which seems to be what you're after.)
Don't know all that much about them myself other than what I've seen in the testbed but they seam to work like static edges but stops objects from passing through on both sides. If I understand correctly it also has has a radius so that it forms a capsule type shape that gives smoother collisions when the segments are chained together.
I'm using pyBox2D-2.0.2b1, I've read up on b2Segments but they appear to serve a different purpose to Chipmunk's segments.
I'm using pyBox2D-2.0.2b1, I've read up on b2Segments but they appear to serve a different purpose to Chipmunk's segments.
Jesse wrote:
Also, what version of Box2D are you using? (I ask because the current C++ version does have support for 'two-sided' line segment collision shapes, which seems to be what you're after.)
Could you please point me to some information regarding these "two-sided line segment collision shapes" I can't seam to find any documentation on them.
Quote:
Could you please point me to some information regarding these "two-sided line segment collision shapes" I can't seam to find any documentation on them.
I'm using the most recent C++ version, in which line segments are simply polygons with two vertices. I believe this is a fairly recent addition, so it may be that earlier C++ versions and some of the versions for other languages do not include this feature.
I haven't used the Python version myself, so I'm not really sure what features it includes or doesn't include. (Maybe someone who has used pybox2d or is involved in its development can comment further on this.)
Thanks Jesse 😀 , guess I'll have to wait for the next release of pyBox2d.
Original thread: https://box2d.org/forum/viewtopic.php?t=4656