Exemple #1
0
        public double GetWallDistance(Ray ray)
        {
            Point2D intersect = wallPhysics.StaticRayCast(ray);

            return(intersect == null ? Double.MaxValue : (intersect - ray.Source).Magnitude);
        }
Exemple #2
0
 public WalkerExit(Visualizer2D.Exit exit)
 {
     Collider = new Visualizer2D.CircleCollider(exit.Position, 20.0f);
     Position = exit.Position;
 }