Class CompoundShapeBatch<TShape>
- Namespace
- BepuPhysics.Collidables
- Assembly
- BepuPhysics.dll
public class CompoundShapeBatch<TShape> : ShapeBatch<TShape> where TShape : unmanaged, ICompoundShape
Type Parameters
TShape
- Inheritance
-
CompoundShapeBatch<TShape>
- Inherited Members
-
Constructors
CompoundShapeBatch(BufferPool, int, Shapes)
public CompoundShapeBatch(BufferPool pool, int initialShapeCount, Shapes shapeBatches)
Parameters
pool BufferPool
initialShapeCount int
shapeBatches Shapes
Methods
ComputeBounds(ref BoundingBoxBatcher)
public override void ComputeBounds(ref BoundingBoxBatcher batcher)
Parameters
batcher BoundingBoxBatcher
ComputeBounds(int, Quaternion, out Vector3, out Vector3)
public override void ComputeBounds(int shapeIndex, Quaternion orientation, out Vector3 min, out Vector3 max)
Parameters
shapeIndex int
orientation Quaternion
min Vector3
max Vector3
Dispose(int, BufferPool)
protected override void Dispose(int index, BufferPool pool)
Parameters
index int
pool BufferPool
RayTest<TRayHitHandler>(int, in RigidPose, in RayData, ref float, ref TRayHitHandler)
public override void RayTest<TRayHitHandler>(int shapeIndex, in RigidPose pose, in RayData ray, ref float maximumT, ref TRayHitHandler hitHandler) where TRayHitHandler : struct, IShapeRayHitHandler
Parameters
shapeIndex int
pose RigidPose
ray RayData
maximumT float
hitHandler TRayHitHandler
Type Parameters
TRayHitHandler
RayTest<TRayHitHandler>(int, in RigidPose, ref RaySource, ref TRayHitHandler)
public override void RayTest<TRayHitHandler>(int shapeIndex, in RigidPose pose, ref RaySource rays, ref TRayHitHandler hitHandler) where TRayHitHandler : struct, IShapeRayHitHandler
Parameters
shapeIndex int
pose RigidPose
rays RaySource
hitHandler TRayHitHandler
Type Parameters
TRayHitHandler
RemoveAndDisposeChildren(int, Shapes, BufferPool)
protected override void RemoveAndDisposeChildren(int index, Shapes shapes, BufferPool pool)
Parameters
index int
shapes Shapes
pool BufferPool