Interface IShape
- Namespace
- BepuPhysics.Collidables
- Assembly
- BepuPhysics.dll
Defines a type usable as a shape by collidables.
public interface IShape
Properties
TypeId
Unique type id for this shape type.
public static abstract int TypeId { get; }
Property Value
Methods
CreateShapeBatch(BufferPool, int, Shapes)
Creates a shape batch for this type of shape.
public static abstract ShapeBatch CreateShapeBatch(BufferPool pool, int initialCapacity, Shapes shapeBatches)
Parameters
pool
BufferPoolBuffer pool used to create the batch.
initialCapacity
intInitial capacity to allocate within the batch.
shapeBatches
ShapesThe set of shapes to contain this batch.
Returns
- ShapeBatch
Shape batch for the shape type.
Remarks
This is typically used internally to initialize new shape collections in response to shapes being added. It is not likely to be useful outside of the engine.