can modify vector grains etc
parent
296d7ca836
commit
5718734f6f
|
@ -18,6 +18,16 @@ GameLib.D3.Camera = function Camera(
|
|||
|
||||
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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -27,6 +27,8 @@ GameLib.D3.Vector3.Runtime = function RuntimeVector3(graphics, parentObject, api
|
|||
|
||||
this.parentObject = parentObject;
|
||||
|
||||
this.grain = 0.001;
|
||||
|
||||
this.instance = this.createInstance();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue