a = 0 void f1() { a = a + 1 AddSphere s{a} /Bounciness:1.0 s{a}.AddForce(5000) } AddJoystick /OnRightButtonClick:f1 for (i = 0; i < 10; i++) { x = random(-30, 30) y = random(-30, 30) z = random(40, 60) AddCube /Position:{x}, {y}, {z} /Scale:5, 5, 5 /UseGravity:false /Bounciness:1.0 }