Class ConvexShapeBatch<TShape, TShapeWide>
- Namespace
- BepuPhysics.Collidables
- Assembly
- BepuPhysics.dll
public class ConvexShapeBatch<TShape, TShapeWide> : ShapeBatch<TShape>, IConvexShapeBatch where TShape : unmanaged, IConvexShape where TShapeWide : unmanaged, IShapeWide<TShape>
Type Parameters
TShape
TShapeWide
- Inheritance
-
ShapeBatch<TShape>ConvexShapeBatch<TShape, TShapeWide>
- Implements
- Derived
- Inherited Members
Constructors
ConvexShapeBatch(BufferPool, int)
public ConvexShapeBatch(BufferPool pool, int initialShapeCount)
Parameters
pool
BufferPoolinitialShapeCount
int
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
intorientation
Quaternionmin
Vector3max
Vector3
ComputeInertia(int, float)
Computes the inertia of a shape.
public BodyInertia ComputeInertia(int shapeIndex, float mass)
Parameters
shapeIndex
intIndex of the shape to compute the inertia of.
mass
floatMass to use to compute the inertia.
Returns
- BodyInertia
Inertia of the shape.
Dispose(int, BufferPool)
protected override void Dispose(int index, BufferPool pool)
Parameters
index
intpool
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
Type Parameters
TRayHitHandler
RayTest<TRayHitHandler>(int, in RigidPose, ref RaySource, ref TRayHitHandler)
public override void RayTest<TRayHitHandler>(int index, in RigidPose pose, ref RaySource rays, ref TRayHitHandler hitHandler) where TRayHitHandler : struct, IShapeRayHitHandler
Parameters
Type Parameters
TRayHitHandler
RemoveAndDisposeChildren(int, Shapes, BufferPool)
protected override void RemoveAndDisposeChildren(int index, Shapes shapes, BufferPool pool)