Generate Custom Mesh Collider dynamically + options for Rigid body

I don’t find my ColliderDesc to use its functions

by user 224464722878005248

Can you check the camera culling settings? Is it set to Skybox?

Where is this setting ?

by user 224464722878005248

On my camera ?

by user 224464722878005248

yes

by user 224464722878005248

Can you check the browser console log and show me the stacktrace of this warning?

I say "orthographic camera but it’s not really and orthographic camera, it’s only a perspective camera (in case)
Yes

by user 224464722878005248

Ah ok that’s just the camera’s name

(I use it as, but it’s not yes)

by user 224464722878005248

by user 224464722878005248

when you click this arrow that points to the right you see where the message comes from exactly
image.png

Oh sorry, wrong camera

by user 224464722878005248

I put it on unitialized, that’s ok now

by user 224464722878005248

Meaning? You had another camera set to use a Skybox but your scene doesnt contain a skybox - is that correct?

Yes, I sent you the environnement settings of another camera not the Orthographic camera I missed it
But the OrthographicCamera was on Skybox environnement, I changed it and now it’s ok

by user 224464722878005248

About the collider: this works for me:

export class GetCollider extends Behaviour {

    onEnable(): void {
        const collider = this.gameObject.getComponent(Collider);
        console.log(this.context.physics.engine?.getBody(collider!));
    }
}

image.png
image.png

this gives me the underlying physics object from rapier

including what you are looking for :slightly_smiling_face:
image.png

or those
image.png