|
@@ -155,7 +155,7 @@ module BABYLON {
|
|
|
public get angularSensibilityX(): number {
|
|
|
var pointers = <ArcRotateCameraPointersInput>this.inputs.attached["pointers"];
|
|
|
if (pointers) {
|
|
|
- return pointers.angularSensibilityX;
|
|
|
+ return pointers.angularSensibilityX;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
@@ -174,7 +174,7 @@ module BABYLON {
|
|
|
public get angularSensibilityY(): number {
|
|
|
var pointers = <ArcRotateCameraPointersInput>this.inputs.attached["pointers"];
|
|
|
if (pointers) {
|
|
|
- return pointers.angularSensibilityY;
|
|
|
+ return pointers.angularSensibilityY;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
@@ -193,7 +193,7 @@ module BABYLON {
|
|
|
public get pinchPrecision(): number {
|
|
|
var pointers = <ArcRotateCameraPointersInput>this.inputs.attached["pointers"];
|
|
|
if (pointers) {
|
|
|
- return pointers.pinchPrecision;
|
|
|
+ return pointers.pinchPrecision;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
@@ -214,7 +214,7 @@ module BABYLON {
|
|
|
public get pinchDeltaPercentage(): number {
|
|
|
var pointers = <ArcRotateCameraPointersInput>this.inputs.attached["pointers"];
|
|
|
if (pointers) {
|
|
|
- return pointers.pinchDeltaPercentage;
|
|
|
+ return pointers.pinchDeltaPercentage;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
@@ -233,7 +233,7 @@ module BABYLON {
|
|
|
public get panningSensibility(): number {
|
|
|
var pointers = <ArcRotateCameraPointersInput>this.inputs.attached["pointers"];
|
|
|
if (pointers) {
|
|
|
- return pointers.panningSensibility;
|
|
|
+ return pointers.panningSensibility;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
@@ -252,7 +252,7 @@ module BABYLON {
|
|
|
public get keysUp(): number[] {
|
|
|
var keyboard = <ArcRotateCameraKeyboardMoveInput>this.inputs.attached["keyboard"];
|
|
|
if (keyboard) {
|
|
|
- return keyboard.keysUp;
|
|
|
+ return keyboard.keysUp;
|
|
|
}
|
|
|
|
|
|
return [];
|
|
@@ -261,7 +261,7 @@ module BABYLON {
|
|
|
public set keysUp(value: number[]) {
|
|
|
var keyboard = <ArcRotateCameraKeyboardMoveInput>this.inputs.attached["keyboard"];
|
|
|
if (keyboard) {
|
|
|
- keyboard.keysUp = value;
|
|
|
+ keyboard.keysUp = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -271,7 +271,7 @@ module BABYLON {
|
|
|
public get keysDown(): number[] {
|
|
|
var keyboard = <ArcRotateCameraKeyboardMoveInput>this.inputs.attached["keyboard"];
|
|
|
if (keyboard) {
|
|
|
- return keyboard.keysDown;
|
|
|
+ return keyboard.keysDown;
|
|
|
}
|
|
|
|
|
|
return [];
|
|
@@ -280,7 +280,7 @@ module BABYLON {
|
|
|
public set keysDown(value: number[]) {
|
|
|
var keyboard = <ArcRotateCameraKeyboardMoveInput>this.inputs.attached["keyboard"];
|
|
|
if (keyboard) {
|
|
|
- keyboard.keysDown = value;
|
|
|
+ keyboard.keysDown = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -290,7 +290,7 @@ module BABYLON {
|
|
|
public get keysLeft(): number[] {
|
|
|
var keyboard = <ArcRotateCameraKeyboardMoveInput>this.inputs.attached["keyboard"];
|
|
|
if (keyboard) {
|
|
|
- return keyboard.keysLeft;
|
|
|
+ return keyboard.keysLeft;
|
|
|
}
|
|
|
|
|
|
return [];
|
|
@@ -299,7 +299,7 @@ module BABYLON {
|
|
|
public set keysLeft(value: number[]) {
|
|
|
var keyboard = <ArcRotateCameraKeyboardMoveInput>this.inputs.attached["keyboard"];
|
|
|
if (keyboard) {
|
|
|
- keyboard.keysLeft = value;
|
|
|
+ keyboard.keysLeft = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -309,7 +309,7 @@ module BABYLON {
|
|
|
public get keysRight(): number[] {
|
|
|
var keyboard = <ArcRotateCameraKeyboardMoveInput>this.inputs.attached["keyboard"];
|
|
|
if (keyboard) {
|
|
|
- return keyboard.keysRight;
|
|
|
+ return keyboard.keysRight;
|
|
|
}
|
|
|
|
|
|
return [];
|
|
@@ -318,7 +318,7 @@ module BABYLON {
|
|
|
public set keysRight(value: number[]) {
|
|
|
var keyboard = <ArcRotateCameraKeyboardMoveInput>this.inputs.attached["keyboard"];
|
|
|
if (keyboard) {
|
|
|
- keyboard.keysRight = value;
|
|
|
+ keyboard.keysRight = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -328,7 +328,7 @@ module BABYLON {
|
|
|
public get wheelPrecision(): number {
|
|
|
var mousewheel = <ArcRotateCameraMouseWheelInput>this.inputs.attached["mousewheel"];
|
|
|
if (mousewheel) {
|
|
|
- return mousewheel.wheelPrecision;
|
|
|
+ return mousewheel.wheelPrecision;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
@@ -337,7 +337,7 @@ module BABYLON {
|
|
|
public set wheelPrecision(value: number) {
|
|
|
var mousewheel = <ArcRotateCameraMouseWheelInput>this.inputs.attached["mousewheel"];
|
|
|
if (mousewheel) {
|
|
|
- mousewheel.wheelPrecision = value;
|
|
|
+ mousewheel.wheelPrecision = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -349,7 +349,7 @@ module BABYLON {
|
|
|
public get wheelDeltaPercentage(): number {
|
|
|
var mousewheel = <ArcRotateCameraMouseWheelInput>this.inputs.attached["mousewheel"];
|
|
|
if (mousewheel) {
|
|
|
- return mousewheel.wheelDeltaPercentage;
|
|
|
+ return mousewheel.wheelDeltaPercentage;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
@@ -358,7 +358,7 @@ module BABYLON {
|
|
|
public set wheelDeltaPercentage(value: number) {
|
|
|
var mousewheel = <ArcRotateCameraMouseWheelInput>this.inputs.attached["mousewheel"];
|
|
|
if (mousewheel) {
|
|
|
- mousewheel.wheelDeltaPercentage = value;
|
|
|
+ mousewheel.wheelDeltaPercentage = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -660,7 +660,7 @@ module BABYLON {
|
|
|
/** @hidden */
|
|
|
public _isSynchronizedViewMatrix(): boolean {
|
|
|
if (!super._isSynchronizedViewMatrix()) {
|
|
|
- return false;
|
|
|
+ return false;
|
|
|
}
|
|
|
|
|
|
return this._cache._target.equals(this._getTargetPosition())
|
|
@@ -728,13 +728,13 @@ module BABYLON {
|
|
|
this.inertialBetaOffset *= this.inertia;
|
|
|
this.inertialRadiusOffset *= this.inertia;
|
|
|
if (Math.abs(this.inertialAlphaOffset) < Epsilon) {
|
|
|
- this.inertialAlphaOffset = 0;
|
|
|
+ this.inertialAlphaOffset = 0;
|
|
|
}
|
|
|
if (Math.abs(this.inertialBetaOffset) < Epsilon) {
|
|
|
- this.inertialBetaOffset = 0;
|
|
|
+ this.inertialBetaOffset = 0;
|
|
|
}
|
|
|
if (Math.abs(this.inertialRadiusOffset) < this.speed * Epsilon) {
|
|
|
- this.inertialRadiusOffset = 0;
|
|
|
+ this.inertialRadiusOffset = 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -771,10 +771,10 @@ module BABYLON {
|
|
|
this.inertialPanningY *= this.panningInertia;
|
|
|
|
|
|
if (Math.abs(this.inertialPanningX) < this.speed * Epsilon) {
|
|
|
- this.inertialPanningX = 0;
|
|
|
+ this.inertialPanningX = 0;
|
|
|
}
|
|
|
if (Math.abs(this.inertialPanningY) < this.speed * Epsilon) {
|
|
|
- this.inertialPanningY = 0;
|
|
|
+ this.inertialPanningY = 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -925,8 +925,8 @@ module BABYLON {
|
|
|
|
|
|
this._computeViewMatrix(this.position, target, up);
|
|
|
|
|
|
- this._viewMatrix.m[12] += this.targetScreenOffset.x;
|
|
|
- this._viewMatrix.m[13] += this.targetScreenOffset.y;
|
|
|
+ this._viewMatrix.addAtIndex(12, this.targetScreenOffset.x);
|
|
|
+ this._viewMatrix.addAtIndex(13, this.targetScreenOffset.y);
|
|
|
}
|
|
|
this._currentTarget = target;
|
|
|
return this._viewMatrix;
|
|
@@ -970,8 +970,8 @@ module BABYLON {
|
|
|
}
|
|
|
|
|
|
this._computeViewMatrix(this.position, target, up);
|
|
|
- this._viewMatrix.m[12] += this.targetScreenOffset.x;
|
|
|
- this._viewMatrix.m[13] += this.targetScreenOffset.y;
|
|
|
+ this._viewMatrix.addAtIndex(12, this.targetScreenOffset.x);
|
|
|
+ this._viewMatrix.addAtIndex(13, this.targetScreenOffset.y);
|
|
|
|
|
|
this._collisionTriggered = false;
|
|
|
}
|