Jump to content

p2 Physics: Which Collision Face


quarks
 Share

Recommended Posts

I have a question about p2 physics. Actually, I have a lot of questions about p2 physics, but I will try and keep the topic relatively focused.

 

I know it is not possible to do something like sprite.touching.top in p2 because the polygonal bodies can have many faces in arbitrary orientations. Is it possible to determine which specific face of one body that another body collided with. From reading other forum posts and examples, I suspect that this can be done by mucking around with contactequations, but I don't really understand the format of that data structure or how it works. Can anyone help either with the specific problem of finding the collision face or the more general task of explaining contactequations?

 

Thanks.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...