29 lines
619 B
JavaScript
29 lines
619 B
JavaScript
/**
|
|
* R3.D3.API.Shape.Plane
|
|
* @constructor
|
|
* @param apiShape
|
|
*/
|
|
R3.D3.API.Shape.Plane = function(
|
|
apiShape
|
|
) {
|
|
|
|
console.log('TODO: implement Shape.Plane');
|
|
|
|
if (R3.Utils.UndefinedOrNull(apiShape)) {
|
|
apiShape = {};
|
|
}
|
|
this.apiShape = apiShape;
|
|
|
|
R3.D3.API.Shape.call(
|
|
this,
|
|
this.apiShape,
|
|
this.apiShape.boundingSphereRadius,
|
|
this.apiShape.collisionResponse,
|
|
this.apiShape.frictionMaterial
|
|
);
|
|
|
|
};
|
|
|
|
R3.D3.API.Shape.Plane.prototype = Object.create(R3.D3.API.Shape.prototype);
|
|
R3.D3.API.Shape.Plane.prototype.constructor = R3.D3.API.Shape.Plane;
|