Darthfett / A-Priori-Physics-System

A side-scroller game based upon Mega Man X, with a priori collision detection, and objects being represented as a sequence of connected points.
3 stars 0 forks source link

Collisions calculated are only valid if calculated at Movable._pos_valid_time #17

Closed Darthfett closed 12 years ago

Darthfett commented 12 years ago

Whenever collisions are calculated, they are only valid if the current time if for both pairs of entities, Movable._pos_valid_time (i.e. the current time is the last time the position was manually updated). This is an issue, as collisions should be able to be calculated at any time.

A good fix would be to have velocity calculated according to the current time.