Skip to main content

ShapeCapsule

The ShapeCapsule class represents a capsule-shaped geometry in the Scene. It extends the Shape class by adding properties to define the capsule dimensions. The capsule axis is aligned with the Z axis.

#include <scene/TellusimShapeCapsule.h>

Inheritance

Constructors

explicit ShapeCapsule(const char *name = nullptr)
explicit ShapeCapsule(Body &body, const char *name = nullptr)
explicit ShapeCapsule(Object &object, const char *name = nullptr)

Methods

Shape radius.

void setRadius(float32_t radius)
float32_t getRadius() const

Shape height.

void setHeight(float32_t height)
float32_t getHeight() const