Exemplo n.º 1
0
 /// <summary>
 /// This one is used to assist with the clone method (especially for my derived classes)
 /// </summary>
 /// <param name="usesBoundingBox">Just pass in what you have</param>
 /// <param name="boundingBoxLower">Set this to null if bounding box is false</param>
 /// <param name="boundingBoxUpper">Set this to null if bounding box is false</param>
 protected RigidBodyPolygon(MyVector position, DoubleVector origDirectionFacing, MyQuaternion rotation, MyPolygonSyncedRotation polygon, double radius, double elasticity, double kineticFriction, double staticFriction, bool usesBoundingBox, MyVector boundingBoxLower, MyVector boundingBoxUpper)
     : base(position, origDirectionFacing, rotation, radius, elasticity, kineticFriction, staticFriction, usesBoundingBox, boundingBoxLower, boundingBoxUpper)
 {
     _polygon = polygon;
 }
Exemplo n.º 2
0
 public RigidBodyPolygon(MyVector position, DoubleVector origDirectionFacing, MyPolygon polygon, double radius)
     : base(position, origDirectionFacing, radius)
 {
     _polygon = new MyPolygonSyncedRotation(polygon.UniquePoints, polygon.Triangles, this.Rotation);
 }
Exemplo n.º 3
0
 /// <summary>
 /// This overload is used if you plan to do collisions
 /// </summary>
 public RigidBodyPolygon(MyVector position, DoubleVector origDirectionFacing, MyPolygon polygon, double radius, double elasticity, double kineticFriction, double staticFriction, MyVector boundingBoxLower, MyVector boundingBoxUpper)
     : base(position, origDirectionFacing, radius, elasticity, kineticFriction, staticFriction, boundingBoxLower, boundingBoxUpper)
 {
     _polygon = new MyPolygonSyncedRotation(polygon.UniquePoints, polygon.Triangles, this.Rotation);
 }
Exemplo n.º 4
0
 /// <summary>
 /// This overload should only be used during a clone.  I simply trust the values passed to me
 /// </summary>
 protected SpherePolygon(MyVector position, DoubleVector origDirectionFacing, MyQuaternion rotation, MyPolygonSyncedRotation polygon, double radius)
     : base(position, origDirectionFacing, rotation, radius)
 {
     _polygon = polygon;
 }
Exemplo n.º 5
0
 public SolidBallPolygon(MyVector position, DoubleVector origDirectionFacing, MyPolygon polygon, double radius, double mass, MyVector boundingBoxLower, MyVector boundingBoxUpper)
     : base(position, origDirectionFacing, radius, mass, boundingBoxLower, boundingBoxUpper)
 {
     _polygon = new MyPolygonSyncedRotation(polygon.UniquePoints, polygon.Triangles, this.Rotation);
 }
Exemplo n.º 6
0
 /// <summary>
 /// This one is used to assist with the clone method (especially for my derived classes)
 /// </summary>
 /// <param name="usesBoundingBox">Just pass in what you have</param>
 /// <param name="boundingBoxLower">Set this to null if bounding box is false</param>
 /// <param name="boundingBoxUpper">Set this to null if bounding box is false</param>
 protected RigidBodyPolygon(MyVector position, DoubleVector origDirectionFacing, MyQuaternion rotation, MyPolygonSyncedRotation polygon, double radius, double elasticity, double kineticFriction, double staticFriction, bool usesBoundingBox, MyVector boundingBoxLower, MyVector boundingBoxUpper)
     : base(position, origDirectionFacing, rotation, radius, elasticity, kineticFriction, staticFriction, usesBoundingBox, boundingBoxLower, boundingBoxUpper)
 {
     _polygon = polygon;
 }
Exemplo n.º 7
0
 /// <summary>
 /// This overload is used if you plan to do collisions
 /// </summary>
 public RigidBodyPolygon(MyVector position, DoubleVector origDirectionFacing, MyPolygon polygon, double radius, double elasticity, double kineticFriction, double staticFriction, MyVector boundingBoxLower, MyVector boundingBoxUpper)
     : base(position, origDirectionFacing, radius, elasticity, kineticFriction, staticFriction, boundingBoxLower, boundingBoxUpper)
 {
     _polygon = new MyPolygonSyncedRotation(polygon.UniquePoints, polygon.Triangles, this.Rotation);
 }
Exemplo n.º 8
0
 public RigidBodyPolygon(MyVector position, DoubleVector origDirectionFacing, MyPolygon polygon, double radius)
     : base(position, origDirectionFacing, radius)
 {
     _polygon = new MyPolygonSyncedRotation(polygon.UniquePoints, polygon.Triangles, this.Rotation);
 }
Exemplo n.º 9
0
 public SolidBallPolygon(MyVector position, DoubleVector origDirectionFacing, MyPolygon polygon, double radius, double mass, MyVector boundingBoxLower, MyVector boundingBoxUpper)
     : base(position, origDirectionFacing, radius, mass, boundingBoxLower, boundingBoxUpper)
 {
     _polygon = new MyPolygonSyncedRotation(polygon.UniquePoints, polygon.Triangles, this.Rotation);
 }
Exemplo n.º 10
0
 /// <summary>
 /// This overload should only be used during a clone.  I simply trust the values passed to me
 /// </summary>
 protected SpherePolygon(MyVector position, DoubleVector origDirectionFacing, MyQuaternion rotation, MyPolygonSyncedRotation polygon, double radius)
     : base(position, origDirectionFacing, rotation, radius)
 {
     _polygon = polygon;
 }