Update: CC - Before Render - Moorcow (qi81k80v08.js) 2 bytes modified

beta.r3js.org
-=yb4f310 2017-11-11 09:07:00 +01:00
parent 04d912fce1
commit db908086ed
1 changed files with 8 additions and 5 deletions

View File

@ -75,17 +75,20 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
var velocity = null;
var axisX = GameLib.Utils.GetRandomIntInclusive(1,10) * 0.1;
var axisY = GameLib.Utils.GetRandomIntInclusive(1,10) * 0.1;
var axisZ = GameLib.Utils.GetRandomIntInclusive(1,10) * 0.1;
var axis = new GameLib.API.Vector3(
GameLib.Utils.GetRandomIntInclusive(1,10) * 0.1,
GameLib.Utils.GetRandomIntInclusive(1,10) * 0.1,
GameLib.Utils.GetRandomIntInclusive(1,10) * 0.1
);
axis.normalize();
var angle = GameLib.Utils.GetRandomIntInclusive(1,100) * 0.001;
var position = {x : 0, y: y, z :0};
var rotation = {
axis : {x : axisX, y: axisY, z: axisZ},
axis : axis,
angle : angle
};