Class TriggerComponent

Inheritance Relationships

Base Type

Class Documentation

class TriggerComponent : public CollisionComponent

Component that notifies all targets when a scene enters its bounds.

Public Functions

TriggerComponent(Entity &owner, const JSON::json &data)
~TriggerComponent()
bool isEntryRepeat()
bool isExitRepeat()
void setDimensions(const Vector3 &dimensions)
void addEntryTarget(SceneID toAdd)
void addExitTarget(SceneID toAdd)
void removeEntryTarget(SceneID toRemove)
void removeExitTarget(SceneID toRemove)
btGhostObject *getGhostObject()
bool setupData()

Perform setting up internal data needed from other components after they have been added to the owning entity.

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.