|
@@ -69,7 +69,7 @@ var BABYLON;
|
|
|
this._renderId = 0;
|
|
|
this._intersectionsInProgress = new Array();
|
|
|
this._onAfterWorldMatrixUpdate = new Array();
|
|
|
- scene.meshes.push(this);
|
|
|
+ scene.addMesh(this);
|
|
|
}
|
|
|
Object.defineProperty(AbstractMesh, "BILLBOARDMODE_NONE", {
|
|
|
get: function () {
|
|
@@ -178,7 +178,7 @@ var BABYLON;
|
|
|
this.rotationQuaternion = BABYLON.Quaternion.RotationYawPitchRoll(this.rotation.y, this.rotation.x, this.rotation.z);
|
|
|
this.rotation = BABYLON.Vector3.Zero();
|
|
|
}
|
|
|
- if (!space || space == 0 /* LOCAL */) {
|
|
|
+ if (!space || space == BABYLON.Space.LOCAL) {
|
|
|
var rotationQuaternion = BABYLON.Quaternion.RotationAxis(axis, amount);
|
|
|
this.rotationQuaternion = this.rotationQuaternion.multiply(rotationQuaternion);
|
|
|
}
|
|
@@ -194,7 +194,7 @@ var BABYLON;
|
|
|
};
|
|
|
AbstractMesh.prototype.translate = function (axis, distance, space) {
|
|
|
var displacementVector = axis.scale(distance);
|
|
|
- if (!space || space == 0 /* LOCAL */) {
|
|
|
+ if (!space || space == BABYLON.Space.LOCAL) {
|
|
|
var tempV3 = this.getPositionExpressedInLocalSpace().add(displacementVector);
|
|
|
this.setPositionWithLocalVector(tempV3);
|
|
|
}
|