OfficerYoda / Fhysics

A Physics simulation
MIT License
0 stars 0 forks source link

Toggling static makes objects disapear #68

Closed OfficerYoda closed 3 months ago

OfficerYoda commented 3 months ago

When toggling the static value of an object in way, so that it collides with another static object while beeing statc, it makes the velocity of the previously static object become (NaN, NaN). This causes every object which collides with this object to dissapear, or more specificly make their position become (NaN, NaN).

OfficerYoda commented 3 months ago

The bug was caused by a missing check if both objects are static