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
lineOrigin
Vector3WidelineDirection
Vector3WidehalfLength
Vector<float>b
CylinderWideinactiveLanes
Vector<int>t
Vector<float>offsetFromCylinderToLineSegment
Vector3Wide
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
da
Vector3WidelocalOffsetB
Vector3WideaHalfLength
Vector<float>bHalfLength
Vector<float>ta
Vector<float>taMin
Vector<float>taMax
Vector<float>tb
Vector<float>tbMin
Vector<float>tbMax
Vector<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
aHalfLength
Vector<float>bHalfLength
Vector<float>axisA
Vector3WidelocalNormal
Vector3WideinverseHorizontalNormalLengthSquaredB
Vector<float>offsetB
Vector3WidecontactTMin
Vector<float>contactTMax
Vector<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
a
CapsuleWideb
CylinderWidespeculativeMargin
Vector<float>offsetB
Vector3WideorientationA
QuaternionWideorientationB
QuaternionWidepairCount
intmanifold
Convex2ContactManifoldWide
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
a
CapsuleWideb
CylinderWidespeculativeMargin
Vector<float>offsetB
Vector3WideorientationB
QuaternionWidepairCount
intmanifold
Convex2ContactManifoldWide
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
a
CapsuleWideb
CylinderWidespeculativeMargin
Vector<float>offsetB
Vector3WidepairCount
intmanifold
Convex2ContactManifoldWide