This code
Code: Select all
for (var i = 0; i < 3; i++) {
system.addMoon("moon" + i).texture= "pack1_moon1.png";
log("test",Vector3D.randomDirection());
}
log("test1",Vector3D.randomDirection());
log("test2",Vector3D.randomDirection());
log("test3",Vector3D.randomDirection());
Code: Select all
23:49:50.066 [test]: (0.737364, -0.377414, 0.560225)
23:49:50.150 [test]: (0.737364, -0.377414, 0.560225)
23:49:50.233 [test]: (0.737364, -0.377414, 0.560225)
23:49:50.233 [test1]: (-0.646662, 0.148543, -0.748173)
23:49:50.233 [test2]: (0.19337, -0.980838, -0.0237779)
23:49:50.233 [test3]: (0.951423, 0.286867, 0.11181)