I have a function that updates the movement to be played, how do I get the controller to update? In my tests nothing happens as I change, follows the example of the function:
function change (rec) {
switch (rec) {
case 1:
controller.use ('playback', {
recording: 'recordings / test1.lz',
pauseOnHand: false,
loop: true
}). use ('riggedHand', {
materialOptions: {
color: new THREE.Color (0xff0000)
},
});
break;
case 2:
controller.use ('playback', {
recording: 'recordings / test2.lz'
pauseOnHand: false,
loop: true
}). use ('riggedHand', {
materialOptions: {
color: new THREE.Color (0xff0000)
},
});
break;
}
}
Regards.