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

ConvexCast() public method

Sweeps a convex shape against the entry.
public ConvexCast ( ConvexShape castShape, RigidTransform &startingTransform, Vector3 &sweep, bool>.Func filter, RayHit &hit ) : bool
castShape BEPUphysics.CollisionShapes.ConvexShapes.ConvexShape Swept shape.
startingTransform BEPUutilities.RigidTransform Beginning location and orientation of the cast shape.
sweep Vector3 Sweep motion to apply to the cast shape.
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.
hit BEPUutilities.RayHit Hit data of the cast on the entry, if any.
return bool
        public virtual bool ConvexCast(ConvexShape castShape, ref RigidTransform startingTransform, ref Vector3 sweep, Func<BroadPhaseEntry, bool> filter, out RayHit hit)
        {
            if (filter(this))
                return ConvexCast(castShape, ref startingTransform, ref sweep, out hit);
            hit = new RayHit();
            return false;
        }

Same methods

BroadPhaseEntry::ConvexCast ( ConvexShape castShape, RigidTransform &startingTransform, Vector3 &sweep, RayHit &hit ) : bool