const loader = new GLTFFileLoader();
loader.load(
‘/src/assets/Work_22.glb’,
function (gltf) {
const sink = scene.getMeshByName("Plane.002");
console.log("Mesh imported:", gltf);
},
null,
function (error) {
console.error(error);
}
);
This is the code i’m using and it doesn’t seem to work also i’m new to web coding so i’m still not sure how things work, i’ve tried looking at the documentation, but it didn’t work. I want to be able to import the local glb file so i can practice on some animation. If there is another way i can just get my model to load it would be great, idk what i’m doing i’m just stuck please help