Object.assign(pc, function () {
/**
* @private
* @constructor
* @name pc.RigidBodyComponentData
* @classdesc Contains data for the RigidBodyComponent
* @description Create a new data structure for a RigidBodyComponent
* @extends pc.ComponentData
*/
var RigidBodyComponentData = function () {
this.enabled = true;
this.mass = 1;
this.linearDamping = 0;
this.angularDamping = 0;
this.linearFactor = new pc.Vec3(1, 1, 1);
this.angularFactor = new pc.Vec3(1, 1, 1);
this.friction = 0.5;
this.restitution = 0;
this.type = pc.BODYTYPE_STATIC;
this.group = pc.BODYGROUP_STATIC;
this.mask = pc.BODYMASK_NOT_STATIC;
// Non-serialized properties
this.body = null;
this.simulationEnabled = false;
};
return {
RigidBodyComponentData: RigidBodyComponentData
};
}());