Exemple #1
0
 /// <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();
 }
Exemple #2
0
 public void setForceOfGravity(int index, DirectionVector forceOfGravity)
 {
     data[index].forceOfGravity = forceOfGravity;
 }