BeRo1985 / kraft

Kraft Physics Engine is an open source Object Pascal physics engine library that can be used in 3D games.
107 stars 21 forks source link

Fix checking sensors flags in TKraft.BuildIsland #24

Closed and3md closed 2 years ago

and3md commented 2 years ago

This PR, fixed crash after add new body and contact with sensor (when sensor is set in rigid body flags).

You can reproduce the bug in platformer example in https://github.com/castle-engine/castle-engine when you change kraft.pas in src/physics/kraft to upstream version. After starting the game make a shoot and try get a coin -> crash in kraft.