in packages/sdk/src/actor/physics/rigidbody.ts [107:119]
public copy(from: Partial<RigidBodyLike>): this {
if (!from) { return this; }
if (from.enabled !== undefined) { this.enabled = from.enabled; }
if (from.velocity !== undefined) { this._velocity.copy(from.velocity); }
if (from.angularVelocity !== undefined) { this._angularVelocity.copy(from.angularVelocity); }
if (from.mass !== undefined) { this.mass = from.mass; }
if (from.detectCollisions !== undefined) { this.detectCollisions = from.detectCollisions; }
if (from.collisionDetectionMode !== undefined) { this.collisionDetectionMode = from.collisionDetectionMode; }
if (from.useGravity !== undefined) { this.useGravity = from.useGravity; }
if (from.isKinematic !== undefined) { this.isKinematic = from.isKinematic; }
if (from.constraints !== undefined) { this.constraints = from.constraints; }
return this;
}