public VirtualBody(CelestialObject body) { position = body.transform.position; velocity = body.GetVelocity(); mass = body.GetMass(); pathColor = body.gameObject.GetComponent <Renderer>().sharedMaterial.color; }
public VirtualBody(CelestialObject body) { position = body.transform.position; velocity = body.GetVelocity(); mass = body.GetMass(); pathColor = body.gameObject.GetComponent <Renderer>().sharedMaterial.color; }