示例#1
0
 public Vector2 Pursuit(Vehicle target)
 {
     Vector2 distance = target.Position - Entity.Position;
     int T = (int)(distance.Length() / Entity.Max_Speed);
     Vector2 futurePosition = target.Position + target.Velocity * T;
     return Seek(futurePosition);
 }
示例#2
0
 public SteeringBehaviour(Vehicle entity)
 {
     Entity = entity;
 }