Update: CC - Before Render - Moorcow (qi81k80v08.js) 2 bytes modified
parent
04d912fce1
commit
db908086ed
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue