Table of Contents

Interface IConvexShapeBatch

Namespace
BepuPhysics.Collidables
Assembly
BepuPhysics.dll

Defines a shape batch containing convex objects that support simple inertia calculations.

public interface IConvexShapeBatch

Remarks

This interface gives compounds a way to compute inertia despite not having direct typed access to the child shapes. It's a layer of overhead that can usually be avoided, but it's sometimes convenient to be able to just enumerate child inertias.

Methods

ComputeInertia(int, float)

Computes the inertia of a shape.

BodyInertia ComputeInertia(int shapeIndex, float mass)

Parameters

shapeIndex int

Index of the shape to compute the inertia of.

mass float

Mass to use to compute the inertia.

Returns

BodyInertia

Inertia of the shape.