How to rotate a gltf model?

hello, I wanted to rotate my gltf model because by adding it to my scene , it got
rotated by 180 degrees.

gltfLoader.load(‘/models/scene.gltf’,

(gltf) =>

{

for(*const* child of *gltf*.scene.children)

{

    scene.add(child)

}

},)

thats my code for adding it to my scene

It would be better to add gltf.scene itself directly to your scene, rather than detaching its children and adding them individually – then you can simply use the .rotation property.

1 Like