Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component = require("component")
- gt = component.glasses
- gt.removeAll()
- cube3D = gt.addCube3D();
- cube3D.addTranslation(0, 4, 0);
- cube3D.addColor(0, 1, 0, 0.5);
- cube3D.addTranslation(0.5, 0.5, 0.5);
- cube3D.setEasing(cube3D.addRotation(0, 0, 1, 0), "LINEAR", "IN", 3000, "deg", 0, 360, "repeat");
- cube3D.setEasing(cube3D.addRotation(0, 1, 0, 0), "LINEAR", "IN", 3000, "deg", 0, 360, "repeat");
- cube3D.addTranslation(-0.5, -0.5, -0.5);
- cube3D_2 = gt.addCube3D();
- cube3D_2.addTranslation(0, 4, 0);
- cube3D_2.addColor(1, 0, 0, 0.5);
- cube3D_2.addScale(0.5, 0.5, 0.5);
- cube3D_2.addTranslation(0.5, 0.5, 0.5);
- cube3D_2.setEasing(cube3D_2.addRotation(0, 0, 1, 0), "LINEAR", "IN", 3000, "deg", 0, 360, "repeat");
- cube3D_2.setEasing(cube3D_2.addRotation(0, 0, 0, 1), "LINEAR", "IN", 3000, "deg", 0, 360, "repeat");
- cube3D_2.addTranslation(-0.5, -0.5, -0.5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement