Omen-of-Aecio / universe

0 stars 0 forks source link

Create a library for continuous 2D collision #1

Closed kstrafe closed 5 years ago

kstrafe commented 7 years ago

We currently have tile-based continuous collision. We should attempt implementing arbitrary coordinate 2D continuous collision.

We can implement continuous 2D collision by extending points on 3D as (old_x, old_y, 0) -> (new_x, new_y, 1).
Can spatial partitioning exploit this in some way?

kstrafe commented 5 years ago

I think a simple function will suffice (just calling the GJK algorithm). We'll figure it out later.