Exemplo n.º 1
0
 ///<summary>
 /// Constructs a new compound shape entry using the volume of the shape as a weight.
 ///</summary>
 ///<param name="shape">Shape to use.</param>
 ///<param name="position">Local position of the shape.</param>
 ///<param name="weight">Weight of the entry.  This defines how much the entry contributes to its owner
 /// for the purposes of center of mass and inertia computation.</param>
 public CompoundShapeEntry(EntityShape shape, System.Numerics.Vector3 position, float weight)
 {
     position.Validate();
     LocalTransform = new RigidTransform(position);
     Shape          = shape;
     Weight         = weight;
 }