Class AudioListenerComponent

Inheritance Relationships

Base Type

Class Documentation

class AudioListenerComponent : public Component

Listening component which is used to put sound output to. Useful for marking 3D sound attenuation in moving listeners

Public Functions

AudioListenerComponent(Entity &owner, const JSON::json &data)
~AudioListenerComponent()
void update()
Vector3 getPosition()
Vector3 getUp()
Vector3 getAt()
RigidBodyComponent *getCollider()
JSON::json getJSON() const

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

void onRemove()

Perform operations prior to detachment from owning entity and destruction.

void draw()

Expose the component data with ImGui.