예제 #1
0
 public void MoveInDirectionOf(PointD location, double?speed = null)
 {
     this.Velocity.Angle.Degrees = PointD.AngleTo(this.Location, location);
     if (speed != null)
     {
         this.Velocity.MaxSpeed = (double)speed;
     }
 }
예제 #2
0
파일: Utility.cs 프로젝트: NTDLS/AIVolution
 public static double AngleTo(ActorBase from, PointD to)
 {
     return(PointD.AngleTo(from.Location, to));
 }
예제 #3
0
파일: Utility.cs 프로젝트: NTDLS/AIVolution
 public static double AngleTo(PointD from, ActorBase to)
 {
     return(PointD.AngleTo(from, to.Location));
 }