2019-07-24 14:45:42 +02:00
|
|
|
/**
|
|
|
|
* R3.D3.API.Shape.Sphere
|
|
|
|
* @constructor
|
|
|
|
* @param apiShape
|
|
|
|
*/
|
|
|
|
R3.D3.API.Shape.Sphere = function(
|
|
|
|
apiShape
|
|
|
|
) {
|
|
|
|
|
|
|
|
console.log('TODO: implement Shape.Sphere');
|
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.apiShape)) {
|
|
|
|
apiComponent.apiShape = {};
|
2019-07-24 14:45:42 +02:00
|
|
|
}
|
2019-10-06 21:11:18 +02:00
|
|
|
this.apiShape = apiComponent.apiShape;
|
2019-07-24 14:45:42 +02:00
|
|
|
|
|
|
|
R3.D3.API.Shape.call(
|
|
|
|
this,
|
|
|
|
this.apiShape,
|
|
|
|
this.apiShape.boundingSphereRadius,
|
|
|
|
this.apiShape.collisionResponse,
|
|
|
|
this.apiShape.frictionMaterial
|
|
|
|
);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
R3.D3.API.Shape.Sphere.prototype = Object.create(R3.D3.API.Shape.prototype);
|
|
|
|
R3.D3.API.Shape.Sphere.prototype.constructor = R3.D3.API.Shape.Sphere;
|