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
capsuleCapsule-
The capsule, in body-local space.
definitionShapeDefinition?-
The shape settings, or null for the defaults.
Returns
- Shape
-
The new shape.
Examples
body.AddCapsule(Capsule.Upright(height: 1.8f, radius: 0.3f));