|
@@ -35,6 +35,7 @@ module BABYLON {
|
|
public _poseMatrix: Matrix;
|
|
public _poseMatrix: Matrix;
|
|
private _localWorld = Matrix.Zero();
|
|
private _localWorld = Matrix.Zero();
|
|
public _worldMatrix = Matrix.Zero();
|
|
public _worldMatrix = Matrix.Zero();
|
|
|
|
+ public _worldMatrixDeterminant = 0;
|
|
private _absolutePosition = Vector3.Zero();
|
|
private _absolutePosition = Vector3.Zero();
|
|
private _pivotMatrix = Matrix.Identity();
|
|
private _pivotMatrix = Matrix.Identity();
|
|
private _pivotMatrixInverse: Matrix;
|
|
private _pivotMatrixInverse: Matrix;
|
|
@@ -114,6 +115,16 @@ module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * Returns the latest update of the World matrix determinant.
|
|
|
|
+ */
|
|
|
|
+ protected _getWorldMatrixDeterminant(): number {
|
|
|
|
+ if (this._currentRenderId !== this.getScene().getRenderId()) {
|
|
|
|
+ this._worldMatrixDeterminant = this.computeWorldMatrix().determinant();
|
|
|
|
+ }
|
|
|
|
+ return this._worldMatrixDeterminant;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
* Returns directly the latest state of the mesh World matrix.
|
|
* Returns directly the latest state of the mesh World matrix.
|
|
* A Matrix is returned.
|
|
* A Matrix is returned.
|
|
*/
|
|
*/
|