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

ConvexCast() public method

Casts a convex shape against the collidable.
public ConvexCast ( CollisionShapes castShape, RigidTransform &startingTransform, Vector3 &sweep, bool>.Func filter, RayCastResult &result ) : bool
castShape CollisionShapes Shape to cast.
startingTransform BEPUutilities.RigidTransform Initial transform of the shape.
sweep Vector3 Sweep to apply to the 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.
result RayCastResult Data and hit object from the first impact, if any.
return bool
        public bool ConvexCast(CollisionShapes.ConvexShapes.ConvexShape castShape, ref RigidTransform startingTransform, ref Vector3 sweep, Func<BroadPhaseEntry, bool> filter, out RayCastResult result)
        {
            CompoundChild hitChild;
            RayHit rayHit;
            bool hit = ConvexCast(castShape, ref startingTransform, ref sweep, filter, out rayHit, out hitChild);
            result = new RayCastResult { HitData = rayHit, HitObject = hitChild.CollisionInformation };
            return hit;
        }

Same methods

CompoundCollidable::ConvexCast ( CollisionShapes castShape, RigidTransform &startingTransform, Vector3 &sweep, bool>.Func filter, RayHit &rayHit ) : bool
CompoundCollidable::ConvexCast ( CollisionShapes castShape, RigidTransform &startingTransform, Vector3 &sweep, bool>.Func filter, RayHit &hit, CompoundChild &hitChild ) : bool
CompoundCollidable::ConvexCast ( CollisionShapes castShape, RigidTransform &startingTransform, Vector3 &sweep, RayCastResult &result ) : bool
CompoundCollidable::ConvexCast ( CollisionShapes castShape, RigidTransform &startingTransform, Vector3 &sweep, RayHit &rayHit ) : bool
CompoundCollidable::ConvexCast ( CollisionShapes castShape, RigidTransform &startingTransform, Vector3 &sweep, RayHit &hit, CompoundChild &hitChild ) : bool