9#ifndef AVARA3D_PHYSICS_SHAPE_PRIMITIVE_SPHEREPHYSICSSHAPE_H
10#define AVARA3D_PHYSICS_SHAPE_PRIMITIVE_SPHEREPHYSICSSHAPE_H
12#include "a3d/physics/shape/PhysicsShape.h"
Describes collision geometry used by one or more PhysicsBody objects.
Type
Collision-geometry representation requested for a PhysicsShape.
Spherical collision shape centered at the local origin.
void type(Type type) override
Rejects attempts to change the fixed primitive shape type.
SpherePhysicsShape(float radius)
Creates a spherical collision shape with radius.
float radius() const
Returns the configured sphere radius.
Type type() const override
Returns PhysicsShape::Type::Primitive.