Table of Contents

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

int

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 Vector3Wide
lineDirection Vector3Wide
halfLength Vector<float>
b CylinderWide
inactiveLanes 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 Vector3Wide
localOffsetB Vector3Wide
aHalfLength 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 Vector3Wide
localNormal Vector3Wide
inverseHorizontalNormalLengthSquaredB Vector<float>
offsetB Vector3Wide
contactTMin 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 CapsuleWide
b CylinderWide
speculativeMargin Vector<float>
offsetB Vector3Wide
orientationA QuaternionWide
orientationB QuaternionWide
pairCount int
manifold 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 CapsuleWide
b CylinderWide
speculativeMargin Vector<float>
offsetB Vector3Wide
orientationB QuaternionWide
pairCount int
manifold 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 CapsuleWide
b CylinderWide
speculativeMargin Vector<float>
offsetB Vector3Wide
pairCount int
manifold Convex2ContactManifoldWide