Exemplo n.º 1
0
        public CelestialBody(Universe universe)
        {
            position = new Vector3();
            rotation = new Quaternion();

            radius = 0;

            mass = 0;
            gravParameter = 0;

            this.universe = universe;
        }
Exemplo n.º 2
0
        public void update(global::CelestialBody body)
        {
            name = body.GetName();

            position = new Vector3(body.position);
            rotation = new Quaternion(body.rotation);

            radius = body.Radius;

            mass = body.Mass;
            gravParameter = body.gravParameter;
        }