Source:getCone

Source:getCone

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Gets the Source's directional volume cones. Together with Source:setDirection, the cone angles allow for the Source's volume to vary depending on its direction.

Function

Synopsis

innerAngle, outerAngle, outerVolume = Source:getCone( )

Arguments

None.

Returns

number innerAngle
The inner angle from the Source's direction, in radians. The Source will play at normal volume if the listener is inside the cone defined by this angle.
number outerAngle
The outer angle from the Source's direction, in radians. The Source will play at a volume between the normal and outer volumes, if the listener is in between the cones defined by the inner and outer angles.
number outerVolume
The Source's volume when the listener is outside both the inner and outer cone angles.

See Also

© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Source:getCone

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部