excaliburjs / Excalibur

🎮 Your friendly TypeScript 2D game engine for the web 🗡️
https://excaliburjs.com
BSD 2-Clause "Simplified" License
1.77k stars 189 forks source link

Support Circle-Polygon Multi Contact Collisions #3139

Open eonarheim opened 2 months ago

eonarheim commented 2 months ago

Context

Currently collisions with circles only support 1 contact, this can lead to some unexpected results when Polygon-Polygon and Polygon-Line support multi contact collisions

In the image, we would like to see contact points on the intersection with the polygon features, not the furthest hull point on the circle

image

Proposal

Update the CollisionJumpTable.ts CollideCirclePolygonto support multiple contacts using a different algorithm

github-actions[bot] commented 4 days ago

This issue hasn't had any recent activity lately and is being marked as stale automatically.