Advertisement
ben_mkiv

Untitled

Aug 22nd, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. component = require("component")
  2.  
  3. gt = component.glasses
  4.  
  5. gt.removeAll()
  6.  
  7. cube3D = gt.addCube3D();
  8. cube3D.addTranslation(0, 4, 0);
  9. cube3D.addColor(0, 1, 0, 0.5);
  10.  
  11. cube3D.addTranslation(0.5, 0.5, 0.5);
  12. cube3D.setEasing(cube3D.addRotation(0, 0, 1, 0), "LINEAR", "IN", 3000, "deg", 0, 360, "repeat");
  13. cube3D.setEasing(cube3D.addRotation(0, 1, 0, 0), "LINEAR", "IN", 3000, "deg", 0, 360, "repeat");
  14. cube3D.addTranslation(-0.5, -0.5, -0.5);
  15.  
  16.  
  17. cube3D_2 = gt.addCube3D();
  18. cube3D_2.addTranslation(0, 4, 0);
  19. cube3D_2.addColor(1, 0, 0, 0.5);
  20. cube3D_2.addScale(0.5, 0.5, 0.5);
  21.  
  22. cube3D_2.addTranslation(0.5, 0.5, 0.5);
  23. cube3D_2.setEasing(cube3D_2.addRotation(0, 0, 1, 0), "LINEAR", "IN", 3000, "deg", 0, 360, "repeat");
  24. cube3D_2.setEasing(cube3D_2.addRotation(0, 0, 0, 1), "LINEAR", "IN", 3000, "deg", 0, 360, "repeat");
  25. cube3D_2.addTranslation(-0.5, -0.5, -0.5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement