Is the TypeScript definition for IWorldInstance
's testOverlapSolid()
method correct? The docs say:
This returns the instance interface class for the first instance with the solid behavior that was found to overlap this instance, or null if none.
However, the type definition in IWorldInstance.d.ts
is testOverlapSolid(): boolean;
.
I'm currently working around this by using the ICollisionEngine
interface directly (e.g. runtime.collisions.testOverlapSolid(myInstance)
).