engine icon indicating copy to clipboard operation
engine copied to clipboard

[FIX] Crash when compound kinematic body enters trigger

Open willeastcott opened this issue 3 years ago • 3 comments

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.

willeastcott avatar Jul 17 '21 10:07 willeastcott

Any idea if this change might alter physics behavior?

slimbuck avatar Jul 17 '21 13:07 slimbuck

@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 😅

yaustar avatar Oct 27 '21 17:10 yaustar

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.

LeXXik avatar Oct 27 '21 18:10 LeXXik

closing as per @willeastcott

mvaligursky avatar Jul 25 '23 13:07 mvaligursky