BEPUphysics.BroadPhaseEntries.BroadPhaseEntry.RayCast C# (CSharp) Method

RayCast() public method

Tests a ray against the entry.
public RayCast ( Ray ray, float maximumLength, bool>.Func filter, RayHit &rayHit ) : bool
ray Ray Ray to test.
maximumLength float Maximum length, in units of the ray's direction's length, to test.
filter bool>.Func Test to apply to the entry. If it returns true, the entry is processed, otherwise the entry is ignored. If a collidable hierarchy is present /// in the entry, this filter will be passed into inner ray casts.
rayHit BEPUutilities.RayHit Hit location of the ray on the entry, if any.
return bool
        public virtual bool RayCast(Ray ray, float maximumLength, Func<BroadPhaseEntry, bool> filter, out RayHit rayHit)
        {
            if (filter(this))
                return RayCast(ray, maximumLength, out rayHit);
            rayHit = new RayHit();
            return false;
        }

Same methods

BroadPhaseEntry::RayCast ( Ray ray, float maximumLength, RayHit &rayHit ) : bool