Fiona / Myrmidon

A Python framework for rapid game development.
16 stars 6 forks source link

Collision Detection #3

Open Frimkron opened 13 years ago

Frimkron commented 13 years ago

I think some collision detection routines would be useful e.g. bounding box, radius

Frimkron commented 13 years ago

Further to this, if Myrmidon handled the optimisation of process-process collisions under the hood using a quadtree or grid or whatever, that would save a lot of hastle. e.g. rather than the user checking processes against one another, MyrmidonProcess (or a subclass) could provide a generator of processes that have collided with the current process that frame.

Fiona commented 9 years ago

Needs testing with rotated entities.

Frimkron commented 9 years ago

Presumably the collision rectangle should be centered at, and rotate around, the hot spot?