jeffThompson / CollisionDetection

A book and examples on collision detection
418 stars 53 forks source link

Collision of rounded rectangle and circle #27

Open DJ-HeYong opened 3 years ago

DJ-HeYong commented 3 years ago

Collision of rounded rectangle and circle , Excuse me, is there a solution ?

jeffThompson commented 3 years ago

Hmm that would be really tricky. You could divide the collision into several steps:

But, unless you really need the perfect accuracy, I think simplifying the rounded rectangle to a regular one (just for collision) would be the better way to go. Hope that helps!

DJ-HeYong commented 3 years ago

Oh, that's it, thank you very much.