-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
I've followed documentation for adding click listener on gltf object , but event not triggered .
`loader = new GLTFLoader()
loader.load(url, gltf => {
model = gltf.scene
model.scale.set(scale, scale, scale)
model.rotation.x = rotation
model.position.x = x
model.position.y = y
model.position.z = z
root.add(model)
model.on('click', function(ev) {
console.log(' model just clicked ! ');
callback();
});
})`
would you please tell me where am i doing wrong ?
Metadata
Metadata
Assignees
Labels
No labels