public double GetWallDistance(Ray ray) { Point2D intersect = wallPhysics.StaticRayCast(ray); return(intersect == null ? Double.MaxValue : (intersect - ray.Source).Magnitude); }
public WalkerExit(Visualizer2D.Exit exit) { Collider = new Visualizer2D.CircleCollider(exit.Position, 20.0f); Position = exit.Position; }