/// <summary> /// Single object in the universe has name, x, y, mass, velocity, radius, color identifier and direction/velocity of flight, NO blockade! /// </summary> public SpaceObject(string objectName, Position position, double mass, double radius, Color color, DirectionVector velocity) { this.name = objectName; this.p = position; this.m = mass; this.r = radius; this.c = color; this.v = velocity; this.blocked = false; this.forceOfGravity = new DirectionVector(); }
public void setForceOfGravity(int index, DirectionVector forceOfGravity) { data[index].forceOfGravity = forceOfGravity; }