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

Game does not handle 0 acceleration and velocity #19

Closed Darthfett closed 12 years ago

Darthfett commented 12 years ago

If there is a net 0 zero acceleration and velocity between two objects, there is a division by zero error.

  File "...\src\physics.py", line 128, in ParabolaLineCollision
    roots = [-c / b]
ZeroDivisionError: float division by zero