예제 #1
0
 public RigidBody(RigidBodyModel model, BodySkin skin)
     : this()
 {
     _skin       = skin;
     _skin.Owner = this;
     this.InitializeFromModel(model);
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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;
 }