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.
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.