engine
engine copied to clipboard
[FIX] Crash when compound kinematic body enters trigger
I can't say why but if I update compounds after kinematics, the crash goes away.
Fixes #3127
I confirm I have read the contributing guidelines and signed the Contributor License Agreement.
Any idea if this change might alter physics behavior?
@willeastcott Just saw this during the Blitz planning. Can this change existing physics behaviour?
As it only seems to affect kinematics and compounds, I'm not too worried about the impact 😅
Hmm, it looks like the motion state of the kinematic compound body is not updated in the updateCompound loop? It does get updated in updateKinematic later, though. Switching places probably fixes that. There should be no impact on physics behavior, since these updates happen within the same simulation step.
closing as per @willeastcott