slembcke / Chipmunk2D

A fast and lightweight 2D game physics library.
http://chipmunk2d.net
MIT License
2.21k stars 352 forks source link

Contact graph for kinematic body #217

Closed yuiwong closed 2 years ago

yuiwong commented 2 years ago

Is there a way to get contact graph for a kinematic body?

I've been thinking about player collision of L4D(Left 4 Dead). In that game, two player can overlap, but get push away from each other gently each tick, eventually they will separate.

To achive this:

So a contact graph would be nice.

But 'body->arbiterList' only has non-sensor dynamic body contact informations, right?

yuiwong commented 2 years ago

It's been a week now, I will close this issue and maybe find some workaround myself. Sorry for the trouble.