public RocketPilot(ITorqueApplier torqueApplier, Rigidbody pilotObject, EngineControler engine, float shootAngle, int startDelay) { _pilotObject = pilotObject; _torqueApplier = torqueApplier; AngleTollerance = shootAngle; StartDelay = startDelay; LocationAimWeighting = 1; AddEngine(engine); }
public ManualSpaceshipPilot(ITorqueApplier torqueApplier, Rigidbody pilotObject, List <EngineControler> engines, float fuel = Mathf.Infinity) { _pilotObject = pilotObject; _torqueApplier = torqueApplier; foreach (var engine in engines.ToList()) { AddEngine(engine); } }
public SpaceshipPilot(ITorqueApplier torqueApplier, Rigidbody pilotObject, List <EngineControler> engines, float angleTollerance, float fuel = Mathf.Infinity) { _pilotObject = pilotObject; _torqueApplier = torqueApplier; SlowdownWeighting = 10; LocationAimWeighting = 1; foreach (var engine in engines.ToList()) { AddEngine(engine); } }
public RocketPilot(ITorqueApplier torqueApplier, Rigidbody pilotObject, List <EngineControler> engines, float startDelay) { _pilotObject = pilotObject; _torqueApplier = torqueApplier; StartDelay = startDelay; LocationAimWeighting = 1; foreach (var engine in engines.ToList()) { AddEngine(engine); } }