Struct SphereCylinderTester
- Namespace
- BepuPhysics.CollisionDetection.CollisionTasks
- Assembly
- BepuPhysics.dll
public struct SphereCylinderTester : IPairTester<SphereWide, CylinderWide, Convex1ContactManifoldWide>
- 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
ComputeSphereToClosest(in CylinderWide, in Vector3Wide, in Matrix3x3Wide, out Vector3Wide, out Vector<float>, out Vector<float>, out Vector3Wide, out Vector3Wide)
public static void ComputeSphereToClosest(in CylinderWide b, in Vector3Wide offsetB, in Matrix3x3Wide orientationMatrixB, out Vector3Wide cylinderLocalOffsetA, out Vector<float> horizontalOffsetLength, out Vector<float> inverseHorizontalOffsetLength, out Vector3Wide sphereToClosestLocalB, out Vector3Wide sphereToClosest)
Parameters
b
CylinderWideoffsetB
Vector3WideorientationMatrixB
Matrix3x3WidecylinderLocalOffsetA
Vector3WidehorizontalOffsetLength
Vector<float>inverseHorizontalOffsetLength
Vector<float>sphereToClosestLocalB
Vector3WidesphereToClosest
Vector3Wide
Test(ref SphereWide, ref CylinderWide, ref Vector<float>, ref Vector3Wide, ref QuaternionWide, ref QuaternionWide, int, out Convex1ContactManifoldWide)
public static void Test(ref SphereWide a, ref CylinderWide b, ref Vector<float> speculativeMargin, ref Vector3Wide offsetB, ref QuaternionWide orientationA, ref QuaternionWide orientationB, int pairCount, out Convex1ContactManifoldWide manifold)
Parameters
a
SphereWideb
CylinderWidespeculativeMargin
Vector<float>offsetB
Vector3WideorientationA
QuaternionWideorientationB
QuaternionWidepairCount
intmanifold
Convex1ContactManifoldWide
Test(ref SphereWide, ref CylinderWide, ref Vector<float>, ref Vector3Wide, ref QuaternionWide, int, out Convex1ContactManifoldWide)
public static void Test(ref SphereWide a, ref CylinderWide b, ref Vector<float> speculativeMargin, ref Vector3Wide offsetB, ref QuaternionWide orientationB, int pairCount, out Convex1ContactManifoldWide manifold)
Parameters
a
SphereWideb
CylinderWidespeculativeMargin
Vector<float>offsetB
Vector3WideorientationB
QuaternionWidepairCount
intmanifold
Convex1ContactManifoldWide
Test(ref SphereWide, ref CylinderWide, ref Vector<float>, ref Vector3Wide, int, out Convex1ContactManifoldWide)
public static void Test(ref SphereWide a, ref CylinderWide b, ref Vector<float> speculativeMargin, ref Vector3Wide offsetB, int pairCount, out Convex1ContactManifoldWide manifold)
Parameters
a
SphereWideb
CylinderWidespeculativeMargin
Vector<float>offsetB
Vector3WidepairCount
intmanifold
Convex1ContactManifoldWide