Hello,
Thanks for the continued support,
most of the code works as expected ,
question on setting rotation back to original position while not on the GLTF object
function render() {
raycaster.setFromCamera( mouse, camera );
// calculate objects intersecting the picking ray
for (let i = 0; i < intersects.length; i++) {
console.log("in ray picking ", intersects[0].object.name);
if (intersects[0].object.name = "geo")
{
intersects[0].object.rotation.z += .01;
}
else {
" rotate to the original position "
}
}
the above code works , i would like to set the rotation of the gltf object to its original position when the raycaster is not hitting the object
Thanks in adavance