C4 Engine
C4 Engine API Documentation

class DirectedSourceObject

Defined in:  C4Sources.h
The DirectedSourceObject class encapsulates data pertaining to a directed sound source.
Definition

class DirectedSourceObject final : public OmniSourceObject

Member Functions
DirectedSourceObject::GetApexTangent Returns the tangent of half the apex angle for a sound source.
DirectedSourceObject::SetApexTangent Sets the tangent of half the apex angle for a sound source.
Constructor

DirectedSourceObject(const char *sound, float range, float apex);

Parameters
sound The name of the sound resource associated with the source.
range The range of the sound source.
apex The tangent of half the apex angle for the sound source.
Description
Base Classes
OmniSourceObject A DirectedSourceObject is a specific type of omnidirectional source object.
See Also

DirectedSource