Loaded(gltf) something, but now I want to make it so I can walk around on it

Here is the code I have. It loads fine - gtlf (https://poly.google.com/view/0RiQN2lar4Q) - easily enough, but I am unable to walk on it. I just fall down to ground floor. Any idea?

const loader = new GLTFLoader();

// Load a glTF resource
loader.load(
// resource URL
‘./resources/model.gltf’,
// called when the resource is loaded
function (gltf) {
//makes the gtlf bigger
gltf.scene.scale.multiplyScalar(100);
scene.add(gltf.scene);

},
// called when loading has errors
function (error) {
console.log(error);
}
);

Try it like so
( from Collection of examples from discourse.threejs.org )
* discourse.threejs.hofk.de
BeginnerExample // … step 03: load 3D models

:slightly_smiling_face:

Sorry. I think I’m missing what you’re trying to point out. I know how to load the models. the above code I cited works. It’s more making it so I don’t drop through it and can walk on it.

edit: I think I found it. It’s this link. I’m more looking to figure out how to make the load-in solid/ walkable. BeginnerExample

three.js does not include physics or navigation logic out of the box. You would probably need to look for tutorials or examples on physics for first-person controls, or on creating and using a navigation mesh.

I’m sorry. I must not have grasped the question correctly. :slightly_frowning_face:

To move a person in a specified area, I created the following example. Maybe this is of interest.

See Circular control used for walkable areas control

There you can try it out. AreaControl