Class SweepTask
- Namespace
- BepuPhysics.CollisionDetection
- Assembly
- BepuPhysics.dll
public abstract class SweepTask
- Inheritance
-
SweepTask
- Derived
- Inherited Members
Properties
ShapeTypeIndexA
Gets the first shape type index associated with the task.
public int ShapeTypeIndexA { get; protected set; }
Property Value
ShapeTypeIndexB
Gets the second shape type index associated with the task.
public int ShapeTypeIndexB { get; protected set; }
Property Value
Methods
PreorderedTypeSweep(void*, in RigidPose, Quaternion, in BodyVelocity, void*, in RigidPose, Vector3, Quaternion, in BodyVelocity, float, float, float, int, out float, out float, out Vector3, out Vector3)
protected abstract bool PreorderedTypeSweep(void* shapeDataA, in RigidPose localPoseA, Quaternion orientationA, in BodyVelocity velocityA, void* shapeDataB, in RigidPose localPoseB, Vector3 offsetB, Quaternion orientationB, in BodyVelocity velocityB, float maximumT, float minimumProgression, float convergenceThreshold, int maximumIterationCount, out float t0, out float t1, out Vector3 hitLocation, out Vector3 hitNormal)
Parameters
shapeDataA
void*localPoseA
RigidPoseorientationA
QuaternionvelocityA
BodyVelocityshapeDataB
void*localPoseB
RigidPoseoffsetB
Vector3orientationB
QuaternionvelocityB
BodyVelocitymaximumT
floatminimumProgression
floatconvergenceThreshold
floatmaximumIterationCount
intt0
floatt1
floathitLocation
Vector3hitNormal
Vector3
Returns
PreorderedTypeSweep<TSweepFilter>(void*, Quaternion, in BodyVelocity, void*, Vector3, Quaternion, in BodyVelocity, float, float, float, int, bool, ref TSweepFilter, Shapes, SweepTaskRegistry, BufferPool, out float, out float, out Vector3, out Vector3)
protected abstract bool PreorderedTypeSweep<TSweepFilter>(void* shapeDataA, Quaternion orientationA, in BodyVelocity velocityA, void* shapeDataB, Vector3 offsetB, Quaternion orientationB, in BodyVelocity velocityB, float maximumT, float minimumProgression, float convergenceThreshold, int maximumIterationCount, bool flipRequired, ref TSweepFilter filter, Shapes shapes, SweepTaskRegistry sweepTasks, BufferPool pool, out float t0, out float t1, out Vector3 hitLocation, out Vector3 hitNormal) where TSweepFilter : ISweepFilter
Parameters
shapeDataA
void*orientationA
QuaternionvelocityA
BodyVelocityshapeDataB
void*offsetB
Vector3orientationB
QuaternionvelocityB
BodyVelocitymaximumT
floatminimumProgression
floatconvergenceThreshold
floatmaximumIterationCount
intflipRequired
boolfilter
TSweepFiltershapes
ShapessweepTasks
SweepTaskRegistrypool
BufferPoolt0
floatt1
floathitLocation
Vector3hitNormal
Vector3
Returns
Type Parameters
TSweepFilter
Sweep(void*, int, in RigidPose, Quaternion, in BodyVelocity, void*, int, in RigidPose, Vector3, Quaternion, in BodyVelocity, float, float, float, int, out float, out float, out Vector3, out Vector3)
public bool Sweep(void* shapeDataA, int shapeTypeA, in RigidPose localPoseA, Quaternion orientationA, in BodyVelocity velocityA, void* shapeDataB, int shapeTypeB, in RigidPose localPoseB, Vector3 offsetB, Quaternion orientationB, in BodyVelocity velocityB, float maximumT, float minimumProgression, float convergenceThreshold, int maximumIterationCount, out float t0, out float t1, out Vector3 hitLocation, out Vector3 hitNormal)
Parameters
shapeDataA
void*shapeTypeA
intlocalPoseA
RigidPoseorientationA
QuaternionvelocityA
BodyVelocityshapeDataB
void*shapeTypeB
intlocalPoseB
RigidPoseoffsetB
Vector3orientationB
QuaternionvelocityB
BodyVelocitymaximumT
floatminimumProgression
floatconvergenceThreshold
floatmaximumIterationCount
intt0
floatt1
floathitLocation
Vector3hitNormal
Vector3
Returns
Sweep<TSweepFilter>(void*, int, Quaternion, in BodyVelocity, void*, int, Vector3, Quaternion, in BodyVelocity, float, float, float, int, ref TSweepFilter, Shapes, SweepTaskRegistry, BufferPool, out float, out float, out Vector3, out Vector3)
public bool Sweep<TSweepFilter>(void* shapeDataA, int shapeTypeA, Quaternion orientationA, in BodyVelocity velocityA, void* shapeDataB, int shapeTypeB, Vector3 offsetB, Quaternion orientationB, in BodyVelocity velocityB, float maximumT, float minimumProgression, float convergenceThreshold, int maximumIterationCount, ref TSweepFilter filter, Shapes shapes, SweepTaskRegistry sweepTasks, BufferPool pool, out float t0, out float t1, out Vector3 hitLocation, out Vector3 hitNormal) where TSweepFilter : ISweepFilter
Parameters
shapeDataA
void*shapeTypeA
intorientationA
QuaternionvelocityA
BodyVelocityshapeDataB
void*shapeTypeB
intoffsetB
Vector3orientationB
QuaternionvelocityB
BodyVelocitymaximumT
floatminimumProgression
floatconvergenceThreshold
floatmaximumIterationCount
intfilter
TSweepFiltershapes
ShapessweepTasks
SweepTaskRegistrypool
BufferPoolt0
floatt1
floathitLocation
Vector3hitNormal
Vector3
Returns
Type Parameters
TSweepFilter