Table of Contents

Struct CapsuleSupportFinder

Namespace
BepuPhysics.Collidables
Assembly
BepuPhysics.dll
public struct CapsuleSupportFinder : ISupportFinder<Capsule, CapsuleWide>
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

bool

Methods

ComputeLocalSupport(in CapsuleWide, in Vector3Wide, in Vector<int>, out Vector3Wide)

public void ComputeLocalSupport(in CapsuleWide shape, in Vector3Wide direction, in Vector<int> terminatedLanes, out Vector3Wide support)

Parameters

shape CapsuleWide
direction Vector3Wide
terminatedLanes Vector<int>
support Vector3Wide

ComputeSupport(in CapsuleWide, in Matrix3x3Wide, in Vector3Wide, in Vector<int>, out Vector3Wide)

public void ComputeSupport(in CapsuleWide shape, in Matrix3x3Wide orientation, in Vector3Wide direction, in Vector<int> terminatedLanes, out Vector3Wide support)

Parameters

shape CapsuleWide
orientation Matrix3x3Wide
direction Vector3Wide
terminatedLanes Vector<int>
support Vector3Wide

GetMargin(in CapsuleWide, out Vector<float>)

Margin associated with the shape according to this support finder.

public void GetMargin(in CapsuleWide shape, out Vector<float> margin)

Parameters

shape CapsuleWide

Shape to find the margin of.

margin Vector<float>

Margin of the shape.