can modify vector grains etc

beta.r3js.org
Theunis J. Botha 2016-11-25 14:43:03 +01:00
parent 296d7ca836
commit 5718734f6f
3 changed files with 27 additions and 1 deletions

View File

@ -17,7 +17,17 @@ GameLib.D3.Camera = function Camera(
this.graphics = graphics;
this.graphics.isNotThreeThrow();
this.position = new GameLib.D3.Vector3.Runtime(
graphics,
this,
this.position
);
this.offsetPosition = new GameLib.D3.Vector3.Runtime(graphics, this, new GameLib.D3.Vector3(0,5,5));
delete this.offsetPosition.updateInstance;
this.instance = this.createInstance();
this.needsUpdate = false;

View File

@ -25,6 +25,20 @@ GameLib.D3.Mesh = function Mesh(
this.instance = this.createInstance(false);
this.needsUpdate = false;
this.offsetRotation = new GameLib.D3.Vector3.Runtime(graphics, this, new GameLib.D3.Vector3(0,0,0));
delete this.offsetRotation.updateInstance;
// this.lookAtPoint = new GameLib.D3.Vector3.Runtime(graphics, this, new GameLib.D3.Vector3(0,0,0));
//
// delete this.offsetRotation.updateInstance;
//
// this.offsetRotation = new GameLib.D3.Vector3.Runtime(graphics, this, new GameLib.D3.Vector3(0,0,0));
//
// delete this.offsetRotation.updateInstance;
};
/**

View File

@ -27,6 +27,8 @@ GameLib.D3.Vector3.Runtime = function RuntimeVector3(graphics, parentObject, api
this.parentObject = parentObject;
this.grain = 0.001;
this.instance = this.createInstance();
};