Struct PretransformedTriangleSupportFinder
- Namespace
- BepuPhysics.CollisionDetection.CollisionTasks
- Assembly
- BepuPhysics.dll
public struct PretransformedTriangleSupportFinder : ISupportFinder<Triangle, TriangleWide>- Implements
- Inherited Members
Properties
HasMargin
Gets whether the support finder is sampling a shape with a spherical margin that should be applied after a solution is found for the core shape.
public bool HasMargin { get; }Property Value
Methods
ComputeLocalSupport(in TriangleWide, in Vector3Wide, in Vector<int>, out Vector3Wide)
public void ComputeLocalSupport(in TriangleWide shape, in Vector3Wide direction, in Vector<int> terminatedLanes, out Vector3Wide support)Parameters
- shapeTriangleWide
- directionVector3Wide
- terminatedLanesVector<int>
- supportVector3Wide
ComputeSupport(in TriangleWide, in Matrix3x3Wide, in Vector3Wide, in Vector<int>, out Vector3Wide)
public void ComputeSupport(in TriangleWide shape, in Matrix3x3Wide orientation, in Vector3Wide direction, in Vector<int> terminatedLanes, out Vector3Wide support)Parameters
- shapeTriangleWide
- orientationMatrix3x3Wide
- directionVector3Wide
- terminatedLanesVector<int>
- supportVector3Wide
GetMargin(in TriangleWide, out Vector<float>)
Margin associated with the shape according to this support finder.
public void GetMargin(in TriangleWide shape, out Vector<float> margin)Parameters
- shapeTriangleWide
- Shape to find the margin of. 
- marginVector<float>
- Margin of the shape.