Class SphereColliderComponent

Inheritance Relationships

Base Type

Class Documentation

class SphereColliderComponent : public RigidBodyComponent

Collider component in the shape of a sphere.

Public Functions

SphereColliderComponent(Entity &owner, const JSON::json &data)
~SphereColliderComponent()
float getRadius() const
void setRadius(float r)
JSON::json getJSON() const

Get JSON representation of the component data needed to re-construct component from memory.

void draw()

Expose the component data with ImGui.