Struct CapsuleCylinderTester
- Namespace
- BepuPhysics.CollisionDetection.CollisionTasks
- Assembly
- BepuPhysics.dll
public struct CapsuleCylinderTester : IPairTester<CapsuleWide, CylinderWide, Convex2ContactManifoldWide>- Implements
- Inherited Members
Properties
BatchSize
Gets the nubmer of pairs which would ideally be gathered together before executing a wide test.
public static int BatchSize { get; }Property Value
Methods
GetClosestPointBetweenLineSegmentAndCylinder(in Vector3Wide, in Vector3Wide, in Vector<float>, in CylinderWide, in Vector<int>, out Vector<float>, out Vector3Wide)
public static void GetClosestPointBetweenLineSegmentAndCylinder(in Vector3Wide lineOrigin, in Vector3Wide lineDirection, in Vector<float> halfLength, in CylinderWide b, in Vector<int> inactiveLanes, out Vector<float> t, out Vector3Wide offsetFromCylinderToLineSegment)Parameters
- lineOriginVector3Wide
- lineDirectionVector3Wide
- halfLengthVector<float>
- bCylinderWide
- inactiveLanesVector<int>
- tVector<float>
- offsetFromCylinderToLineSegmentVector3Wide
GetClosestPointsBetweenSegments(in Vector3Wide, in Vector3Wide, in Vector<float>, in Vector<float>, out Vector<float>, out Vector<float>, out Vector<float>, out Vector<float>, out Vector<float>, out Vector<float>)
public static void GetClosestPointsBetweenSegments(in Vector3Wide da, in Vector3Wide localOffsetB, in Vector<float> aHalfLength, in Vector<float> bHalfLength, out Vector<float> ta, out Vector<float> taMin, out Vector<float> taMax, out Vector<float> tb, out Vector<float> tbMin, out Vector<float> tbMax)Parameters
- daVector3Wide
- localOffsetBVector3Wide
- aHalfLengthVector<float>
- bHalfLengthVector<float>
- taVector<float>
- taMinVector<float>
- taMaxVector<float>
- tbVector<float>
- tbMinVector<float>
- tbMaxVector<float>
GetContactIntervalBetweenSegments(in Vector<float>, in Vector<float>, in Vector3Wide, in Vector3Wide, in Vector<float>, in Vector3Wide, out Vector<float>, out Vector<float>)
public static void GetContactIntervalBetweenSegments(in Vector<float> aHalfLength, in Vector<float> bHalfLength, in Vector3Wide axisA, in Vector3Wide localNormal, in Vector<float> inverseHorizontalNormalLengthSquaredB, in Vector3Wide offsetB, out Vector<float> contactTMin, out Vector<float> contactTMax)Parameters
- aHalfLengthVector<float>
- bHalfLengthVector<float>
- axisAVector3Wide
- localNormalVector3Wide
- inverseHorizontalNormalLengthSquaredBVector<float>
- offsetBVector3Wide
- contactTMinVector<float>
- contactTMaxVector<float>
Test(ref CapsuleWide, ref CylinderWide, ref Vector<float>, ref Vector3Wide, ref QuaternionWide, ref QuaternionWide, int, out Convex2ContactManifoldWide)
public static void Test(ref CapsuleWide a, ref CylinderWide b, ref Vector<float> speculativeMargin, ref Vector3Wide offsetB, ref QuaternionWide orientationA, ref QuaternionWide orientationB, int pairCount, out Convex2ContactManifoldWide manifold)Parameters
- aCapsuleWide
- bCylinderWide
- speculativeMarginVector<float>
- offsetBVector3Wide
- orientationAQuaternionWide
- orientationBQuaternionWide
- pairCountint
- manifoldConvex2ContactManifoldWide
Test(ref CapsuleWide, ref CylinderWide, ref Vector<float>, ref Vector3Wide, ref QuaternionWide, int, out Convex2ContactManifoldWide)
public static void Test(ref CapsuleWide a, ref CylinderWide b, ref Vector<float> speculativeMargin, ref Vector3Wide offsetB, ref QuaternionWide orientationB, int pairCount, out Convex2ContactManifoldWide manifold)Parameters
- aCapsuleWide
- bCylinderWide
- speculativeMarginVector<float>
- offsetBVector3Wide
- orientationBQuaternionWide
- pairCountint
- manifoldConvex2ContactManifoldWide
Test(ref CapsuleWide, ref CylinderWide, ref Vector<float>, ref Vector3Wide, int, out Convex2ContactManifoldWide)
public static void Test(ref CapsuleWide a, ref CylinderWide b, ref Vector<float> speculativeMargin, ref Vector3Wide offsetB, int pairCount, out Convex2ContactManifoldWide manifold)Parameters
- aCapsuleWide
- bCylinderWide
- speculativeMarginVector<float>
- offsetBVector3Wide
- pairCountint
- manifoldConvex2ContactManifoldWide