9#ifndef AVARA3D_PHYSICS_SHAPE_PRIMITIVE_CAPSULEPHYSICSSHAPE_H
10#define AVARA3D_PHYSICS_SHAPE_PRIMITIVE_CAPSULEPHYSICSSHAPE_H
12#include "a3d/physics/shape/PhysicsShape.h"
Capsule collision shape centered at the local origin and aligned along Y.
void type(Type type) override
Rejects attempts to change the fixed primitive shape type.
Type type() const override
Returns PhysicsShape::Type::Primitive.
float radius() const
Returns the configured capsule radius.
float height() const
Returns the configured distance between the centers of the hemispherical caps.
CapsulePhysicsShape(float radius, float height)
Creates a capsule collision shape with the supplied radius and cylindrical-section height.
Describes collision geometry used by one or more PhysicsBody objects.
Type
Collision-geometry representation requested for a PhysicsShape.