Example #1
0
        public TFRaycastHit2D Raycast(FixVec2 origin, FixVec2 direction, Fix distance, TFLayerMask mask)
        {
            TFRaycastHit2D hit = dynamicTree.Raycast(this, origin, origin + direction * distance, mask);

            return(hit);
        }
Example #2
0
 public bool Raycast(FixVec2 pointA, FixVec2 pointB, out TFRaycastHit2D hit)
 {
     hit = default;
     dynamicTree.Raycast(this, pointA, pointB);
     return(false);
 }