arcade icon indicating copy to clipboard operation
arcade copied to clipboard

Look into supporting pymunk.Space for collision

Open einarf opened this issue 3 years ago • 2 comments

Pymunk has a pretty neat collision system using spaces and groups. It supports handlers/callbacks to notify about collision. I strongly suspect this can scale much better the generic sprite collision we're currently using in many cases. Especially of you're doing N x M collision checks and can't use spatial hashing due to both spritelists being highly dynamic.

einarf avatar Aug 08 '22 18:08 einarf

Yeah, it's much faster than the arcade one. It;s object-oriented, so you can get additional properties and features. Using this with my medieval wargame, I got much better performance than using the arcade collision checks. We could also make object-oriented collision checks for arcade too.

eschan145 avatar Aug 18 '22 23:08 eschan145