Dynamic segment shapes
Posted: Sat Jan 26, 2013 2:24 pm
Hello slembcke,
I saw that segment-to-segment collision detection have been implemented. I've ported it to my Chipmunk JS port, but it hasn't worked as I expected. My first thought was that it would have to make possible to create and simulate dynamic "pill" shapes (segments with radius), but I was wrong as I see. I've created a dynamic body with a segment shape and it has moved around very unrealistic...
I came to the conclusion that it's not a bug, rather a missing (or never-wanted-to-implement) feature of segment shapes (their center of mass and related calculations) causes it. My first question is, am I right? And the second: will it be ever implemented, or not - because a polygon and two circle shapes on a body can act like a segment shape with a radius?
I saw that segment-to-segment collision detection have been implemented. I've ported it to my Chipmunk JS port, but it hasn't worked as I expected. My first thought was that it would have to make possible to create and simulate dynamic "pill" shapes (segments with radius), but I was wrong as I see. I've created a dynamic body with a segment shape and it has moved around very unrealistic...
I came to the conclusion that it's not a bug, rather a missing (or never-wanted-to-implement) feature of segment shapes (their center of mass and related calculations) causes it. My first question is, am I right? And the second: will it be ever implemented, or not - because a polygon and two circle shapes on a body can act like a segment shape with a radius?