Source:getCone

Edit

Returns the directional volume cone of the source. The cone is defined by three values: innerAngle, outerAngle, and outerVolume. If the listener is within innerAngle of the source's direction, the volume won't be changed. Otherwise, the volume will start to decrease, reaching a minimum of outerVolume once the listener is at outerAngle radians from the direction of the source.

innerAngle, outerAngle, outerVolume = Source:getCone()

Arguments

None

Returns

NameTypeDescription
innerAnglenumber The inner cone angle, in radians.
outerAnglenumber The outer cone angle, in radians.
outerVolumenumber The outer volume factor.

Notes

When a Source is created, its innerAngle is 0, its outerAngle is 0, and its outerVolume is 1 (no cone effect).

See also