Exemplo n.º 1
0
 public bool CanMergeGoals(SteeringGoal goal)
 {
     return !(this.PositionSet && goal.PositionSet ||
              this.OrientationSet && goal.OrientationSet ||
              this.VelocitySet && goal.VelocitySet ||
              this.RotationSet && goal.RotationSet);
 }
Exemplo n.º 2
0
 public bool CanMergeGoals(SteeringGoal goal)
 {
     return(!(this.PositionSet && goal.PositionSet ||
              this.OrientationSet && goal.OrientationSet ||
              this.VelocitySet && goal.VelocitySet ||
              this.RotationSet && goal.RotationSet));
 }
Exemplo n.º 3
0
 public void UpdateGoal(SteeringGoal goal)
 {
     if (this.CanMergeGoals(goal))
     {
         if (goal.PositionSet)
         {
             this.Position = goal.Position;
         }
         if (goal.OrientationSet)
         {
             this.Orientation = goal.Orientation;
         }
         if (goal.VelocitySet)
         {
             this.Velocity = goal.Velocity;
         }
         if (goal.RotationSet)
         {
             this.Rotation = goal.Rotation;
         }
     }
 }
Exemplo n.º 4
0
 public void UpdateGoal(SteeringGoal goal)
 {
     if (this.CanMergeGoals(goal))
     {
         if (goal.PositionSet)
         {
             this.Position = goal.Position;
         }
         if (goal.OrientationSet)
         {
             this.Orientation = goal.Orientation;
         }
         if (goal.VelocitySet)
         {
             this.Velocity = goal.Velocity;
         }
         if (goal.RotationSet)
         {
             this.Rotation = goal.Rotation;
         }
     }
 }