Hi everyone,
website I have this website developed. I want to rotate every chocolate to different rotations with different speeds with optimiziation. Can anyone help?
function animate() {
renderer.render( scene, camera )
// xFactor += .01
yFactor += .005
// zFactor += .01
if (mnmSceneModel !== undefined) {
for (var i = 0; i < mnmSceneModel.children.length; i++) {
// mnmSceneModel.children[i].rotation.x = xFactor
mnmSceneModel.children[i].rotation.y = yFactor
// mnmSceneModel.children[i].rotation.z = zFactor
}
}
controls.update()
}
Akif Volkan