behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

b2ManifoldPoint - position of contact #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
b2ManifoldPoint stores its local position oddly. As this is now user
accessible, I think an method should be added for calculating an estimate
for the point of contact.
I.e. for polygons, return the point as is, and for circles, offset by
radius * normal.
It might also be helpful to provide a method to extract information from
the contact id. Say, the nearest edge involved on both shapes, treating
circles as having only one edge.

Original issue reported on code.google.com by sadwanm...@gmail.com on 24 Jan 2010 at 11:26

GoogleCodeExporter commented 9 years ago
Have you seen b2WorldManifold and b2GetPointStates?

BTW, I might go back to the old style of manifold. I haven't decided yet.

Original comment by erinca...@gmail.com on 26 Jan 2010 at 8:23

GoogleCodeExporter commented 9 years ago
Fair enough.

Original comment by sadwanm...@gmail.com on 26 Jan 2010 at 9:42

GoogleCodeExporter commented 9 years ago
I added documentation for b2WorldManifold and b2GetPointStates.

Original comment by erinca...@gmail.com on 3 Apr 2010 at 5:35