BEPUphysics.BroadPhaseEntries.MobileCollidables.CompoundCollidable.RayCast C# (CSharp) Method

RayCast() public method

Tests a ray against the compound.
public RayCast ( Ray ray, float maximumLength, bool>.Func filter, RayCastResult &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 RayCastResult Hit data and the hit child collidable, if any.
return bool
        public bool RayCast(Ray ray, float maximumLength, Func<BroadPhaseEntry, bool> filter, out RayCastResult rayHit)
        {
            RayHit hitData;
            CompoundChild hitChild;
            bool hit = RayCast(ray, maximumLength, filter, out hitData, out hitChild);
            rayHit = new RayCastResult { HitData = hitData, HitObject = hitChild.CollisionInformation };
            return hit;
        }

Same methods

CompoundCollidable::RayCast ( Ray ray, float maximumLength, bool>.Func filter, RayHit &rayHit ) : bool
CompoundCollidable::RayCast ( Ray ray, float maximumLength, bool>.Func filter, RayHit &rayHit, CompoundChild &hitChild ) : bool
CompoundCollidable::RayCast ( Ray ray, float maximumLength, RayCastResult &rayHit ) : bool
CompoundCollidable::RayCast ( Ray ray, float maximumLength, RayHit &rayHit ) : bool
CompoundCollidable::RayCast ( Ray ray, float maximumLength, RayHit &rayHit, CompoundChild &hitChild ) : bool