Class HomogeneousCompoundShapeBatch<TShape, TChildShape, TChildShapeWide>
- Namespace
- BepuPhysics.Collidables
- Assembly
- BepuPhysics.dll
public class HomogeneousCompoundShapeBatch<TShape, TChildShape, TChildShapeWide> : ShapeBatch<TShape> where TShape : unmanaged, IHomogeneousCompoundShape<TChildShape, TChildShapeWide> where TChildShape : unmanaged, IConvexShape where TChildShapeWide : unmanaged, IShapeWide<TChildShape>
Type Parameters
TShapeTChildShapeTChildShapeWide
- Inheritance
-
ShapeBatch<TShape>HomogeneousCompoundShapeBatch<TShape, TChildShape, TChildShapeWide>
- Inherited Members
Constructors
HomogeneousCompoundShapeBatch(BufferPool, int)
public HomogeneousCompoundShapeBatch(BufferPool pool, int initialShapeCount)
Parameters
poolBufferPoolinitialShapeCountint
Methods
ComputeBounds(ref BoundingBoxBatcher)
public override void ComputeBounds(ref BoundingBoxBatcher batcher)
Parameters
batcherBoundingBoxBatcher
ComputeBounds(int, Quaternion, out Vector3, out Vector3)
public override void ComputeBounds(int shapeIndex, Quaternion orientation, out Vector3 min, out Vector3 max)
Parameters
shapeIndexintorientationQuaternionminVector3maxVector3
Dispose(int, BufferPool)
protected override void Dispose(int index, BufferPool pool)
Parameters
indexintpoolBufferPool
RayTest<TRayHitHandler>(int, in RigidPose, in RayData, ref float, BufferPool, ref TRayHitHandler)
Tests a ray against a shape in the batch.
public override void RayTest<TRayHitHandler>(int shapeIndex, in RigidPose pose, in RayData ray, ref float maximumT, BufferPool pool, ref TRayHitHandler hitHandler) where TRayHitHandler : struct, IShapeRayHitHandler
Parameters
shapeIndexintIndex of the shape in the batch to test.
poseRigidPosePose of the shape to use for the test.
rayRayDataRay to test against the shape.
maximumTfloatThe maximum parametric distance along the line. May be mutated by the hit handler.
poolBufferPoolPool used for temporary allocations required by the test, if any.
hitHandlerTRayHitHandlerHit handler that will process the reported hits.
Type Parameters
TRayHitHandlerType of the hit handler that will have results reported to it.
RayTest<TRayHitHandler>(int, in RigidPose, ref RaySource, BufferPool, ref TRayHitHandler)
Tests a bunch of rays against a shape in the batch.
public override void RayTest<TRayHitHandler>(int shapeIndex, in RigidPose pose, ref RaySource rays, BufferPool pool, ref TRayHitHandler hitHandler) where TRayHitHandler : struct, IShapeRayHitHandler
Parameters
shapeIndexintIndex of the shape in the batch to test.
poseRigidPosePose of the shape to use for the test.
raysRaySourceRays to test against the shape.
poolBufferPoolPool used for temporary allocations required by the test, if any.
hitHandlerTRayHitHandlerHit handler that will process the reported hits.
Type Parameters
TRayHitHandlerType of the hit handler that will have results reported to it.
RemoveAndDisposeChildren(int, Shapes, BufferPool)
protected override void RemoveAndDisposeChildren(int index, Shapes shapes, BufferPool pool)