Table of Contents

Method AddCapsule

Namespace
Box3D
Assembly
Box3D.NET.dll

AddCapsule(Capsule, ShapeDefinition?)

Attaches a capsule to this body.

public Shape AddCapsule(Capsule capsule, ShapeDefinition? definition = null)

Parameters

capsule Capsule

The capsule, in body-local space.

definition ShapeDefinition?

The shape settings, or null for the defaults.

Returns

Shape

The new shape.

Examples

body.AddCapsule(Capsule.Upright(height: 1.8f, radius: 0.3f));