public RigidBody(RigidBodyModel model, BodySkin skin) : this() { _skin = skin; _skin.Owner = this; this.InitializeFromModel(model); }
/// <summary> /// Construct a new rigid body. /// </summary> public RigidBody() { Mass = MassProperties.Immovable; Transform = World = Transform.Identity; _isMovable = false; _contacts = new List <Constraint>(); _constraints = new List <Constraint>(); _skin = new BodySkin(); _skin.Owner = this; }
/// <summary> /// Construct a new rigid body. /// </summary> /// <param name="skin">A pre-constructed body skin to apply.</param> public RigidBody(BodySkin skin) : this() { _skin = skin; _skin.Owner = this; }