public override void OnStart(StartState state) { base.OnStart(state); var client = new Client("127.0.0.1", 4400, onConnectionSetup); _protocol = new ClientProtocol(client); _universe = new game.Universe(); }
public CelestialBody(Universe universe) { position = new Vector3(); rotation = new Quaternion(); radius = 0; mass = 0; gravParameter = 0; this.universe = universe; }
public Computer() { modules = new List<Module>(); attitude = new AttitudeController(this); modules.Add(new ASASModule(this)); modules.Add(new InfoModule(this)); modules.Add(attitude); _switches = new Dictionary<Module, ModuleSwitch>(); settings = new DebugSettings() { guiUpdateRate = 30f, stateUpdateRate = 30f }; universe = new Universe(); vessel = new Vessel(universe); }
public TestPlugin(Client client) { _protocol = new ClientProtocol(client); universe = new Universe(); }
public Vessel(Universe universe) { _rootRotation = new Quaternion(); _rotatingFrameVelocity = new Vector3(); gravity = new Vector3(); orbit = new math.Orbit(universe); body = new RigidBody(); }
public Orbit(Universe universe) : this(0, 0, 0, 0, 0, 0, 0, new game.CelestialBody(universe)) { }
public CelestialBody(Universe universe, global::CelestialBody body) : this(universe) { update(body); }