Click on mesh with babylon/lite?

Hello, how can click on mesh with babylon/lite?

There no ActionManager or ExecuteCodeAction in “Lite”, should create a “pointerdown” on canvas and try to find mesh with “createGpuPicker”?

well, a simply “pointerdown” does the job, i confused because “pickAsync” needs a “await”
All OK!! :smiley:

Now i got another question, how can enable/disable mesh?? :thinking:

setMeshVisible(node: SceneNode, v: boolean): void

Thank you!!
I was looking in doc Scene/Engine but no reference to “setMeshVisible” and no link to /lite/typedoc

Just a “direct” another question, how you get “getBoundingInfo.boundingBox” on a mesh? only in gizmo i see “boundingBox”

Lite has much less sugar than Babylon.js.

function getBoundingBox(mesh: Mesh) {
    const min = mesh.boundMin;
    const max = mesh.boundMax;

    if (!min || !max) {
        return null;
    }

    return {
        minimum: min,
        maximum: max,
        minimumWorld: min,
        maximumWorld: max,

        center: [
            (min[0] + max[0]) * 0.5,
            (min[1] + max[1]) * 0.5,
            (min[2] + max[2]) * 0.5,
        ] as [number, number, number],

        extendSize: [
            (max[0] - min[0]) * 0.5,
            (max[1] - min[1]) * 0.5,
            (max[2] - min[2]) * 0.5,
        ] as [number, number, number],
    };
}

One may also see the implementation of Babylon.js functions for Lite in lite-compat repo.
For example

I don’t mind if has less sugar, too much is not so good!! :grin:

Just is my second day with “Lite” and try to figure out how things working!!

Thank you, again!!