Saltar la navegación

15 Cospaces: Rotate Items Clockwise Counterclockwise

var horse_0= Scene.getItem('SE3Ks5Buds');
var horse_1= Scene.getItem('OHWahw1NI2');
var horse_2= Scene.getItem('hcMDi5HvWR');
var horse_3= Scene.getItem('7YSh9bhaCT');

horse_0.setPositionAngle(0,3, 0, 0, 0, 1, 0);//original position
horse_0.say("I’m in the same place");

horse_1.setPositionAngle(0,3, 0, 0, 0, 1, Math.PI);//original position
horse_1.say("I’m in the same place: rotation 180º");

horse_2.setPositionAngle(-4,3, 0, -0, 0, 1, Math.PI/2);//Rotate 90º Clockwise
horse_2.say(" I have rotated 90º Clockwise");

horse_3.setPositionAngle(4,3, 0, 0, 0, 1, -Math.PI/2);//Rotate 90º Counterclockwise
horse_3.say("I have rotated 90º Counterclockwise ");