public RigidBody2D(MassProperties massProp, Vector2D position, Vector2D velocity, double orientation, double angularVelocity) { this.MassProp = massProp; this.position = position; this.velocity = velocity; //this.acceleration = acceleration; this.orientation = orientation; //this.angularAcceleration = angularAcceleration; this.angularVelocity = angularVelocity; }
/// <summary> /// Initialize thruster model /// </summary> /// <param name="massProp"></param> /// <param name="rigidBody"></param> /// <param name="tank"></param> /// <param name="mountPointBody"></param> /// <param name="orientation">radians WRT body</param> /// <param name="maxThrust">max thrust in Newtons</param> /// <param name="maxFuelUsage">fuel usage in kg/s at max thrust</param> /// <param name="throttleable">can be throttled</param> public Thruster(MassProperties massProp, RigidBody2D rigidBody, FuelTank tank, Vector2D mountPointBody, double orientation, double maxThrust, double maxFuelUsage, bool throttleable) { this.massProp = massProp; this.rigidBody = rigidBody; this.fuelTank = tank; this.mountPointBody = mountPointBody; this.orientation = orientation; this.maxThrust = maxThrust; this.maxFuelUsage = maxFuelUsage; this.throttleable = throttleable; }
/// <summary> /// Initialize fuel tank /// </summary> /// <param name="massProp"></param> /// <param name="mass">mass of fuel in kg</param> public FuelTank(MassProperties massProp, double mass) { this.massProp = massProp; this.Mass = mass; }
public FuelTank(MassProperties massProp) { this.massProp = massProp; }
public RigidBody2D(MassProperties massProp) { this.MassProp = massProp; }