OfficerYoda / Fhysics

A Physics simulation
MIT License
0 stars 0 forks source link

Objects with zero mass disappear on collision #71

Closed OfficerYoda closed 2 months ago

OfficerYoda commented 2 months ago

When an object with zero mass is colliding with anything else it will disappear due to its position and velocity becoming (NaN, NaN).

OfficerYoda commented 2 months ago

Fixed by making the mass have a minimum of 0.01