I’ve run into this issue in a few different areas when using Typescript. For some reason, Typescript says something doesn’t exist when it clearly does. This time it’s when trying to access the name of an object when using the “registerOnPhysicsCollide”.
Here is a playground (with Typescript) that I’ve created that has the same issue: Babylon.js Playground
Here it is with Javascript: Babylon.js Playground and it works just fine there, but I assume that’s because Javascript is looser with this. How can I access the name of the object in Typescript?