/// <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; }
public RigidBodyPolygon(MyVector position, DoubleVector origDirectionFacing, MyPolygon polygon, double radius) : base(position, origDirectionFacing, radius) { _polygon = new MyPolygonSyncedRotation(polygon.UniquePoints, polygon.Triangles, this.Rotation); }
/// <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); }
/// <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; }
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); }