SoundChannel:setWorldPosition: Difference between revisions
From GiderosMobile
No edit summary |
removed language stuff |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' in development<br/> | |||
''' | '''Class:''' [[SoundChannel]]<br/> | ||
''' | |||
=== | === Description === | ||
Sets the position of this sound in a 3D world. | |||
<source lang="lua"> | <source lang="lua"> | ||
SoundChannel:setWorldPosition(x,y,z,vx,vy,vz) | |||
</source> | </source> | ||
=== | |||
'''x''': (number) | === Parameters === | ||
'''y''': (number) | '''x''': (number) sound x coordinate<br/> | ||
'''z''': (number) | '''y''': (number) sound y coordinate<br/> | ||
'''vx''': (number) | '''z''': (number) sound z coordinate '''optional'''<br/> | ||
'''vy''': (number) | '''vx''': (number) sound velocity x component '''optional'''<br/> | ||
'''vz''': (number) | '''vy''': (number) sound velocity y component '''optional'''<br/> | ||
'''vz''': (number) sound velocity z component '''optional'''<br/> | |||
{{SoundChannel}} | {{SoundChannel}} | ||
Revision as of 12:44, 14 August 2021
Available since: in development
Class: SoundChannel
Description
Sets the position of this sound in a 3D world.
SoundChannel:setWorldPosition(x,y,z,vx,vy,vz)
Parameters
x: (number) sound x coordinate
y: (number) sound y coordinate
z: (number) sound z coordinate optional
vx: (number) sound velocity x component optional
vy: (number) sound velocity y component optional
vz: (number) sound velocity z component optional
- SoundChannel:getPitch
- SoundChannel:getPosition
- SoundChannel:getStreamId
- SoundChannel:getVolume
- SoundChannel:isLooping
- SoundChannel:isPaused
- SoundChannel:isPlaying
- SoundChannel:setEffect
- SoundChannel:setLooping
- SoundChannel:setPaused
- SoundChannel:setPitch
- SoundChannel:setPosition
- SoundChannel:setVolume
- SoundChannel:setWorldPosition
- SoundChannel:stop