Table of Contents

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

int

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 BufferPool

Buffer pool used to create the batch.

initialCapacity int

Initial capacity to allocate within the batch.

shapeBatches Shapes

The 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.