PhysicsImpostor ignoreParent causes crash

It seems like PhysicsImposter.isBodyInitRequired is implemented incorrectly and doesn’t respect ignoreParent, causing exceptions down the line. Is this not an intended use case?

Playground: Babylon.js Playground

The playground has a commented out workaround. Uncomment and refresh the page.

Note, in my actual project I’m using static imposters (mass = 0) so it makes a bit more sense why they’re parent/child.

cc @Cedric

I’m taking a look.

1 Like