Difference between revisions of "SoundChannel:setWorldPosition"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' in development<br/> === Description === Sets the position of this sound in a 3D world <source lang="lua"> = SoundChannel:setWorldPosition(xyzv...") |
|||
Line 4: | Line 4: | ||
Sets the position of this sound in a 3D world | 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 | + | '''x''': (number) X coordinate of this sound ''''''<br/> |
− | '''y | + | '''y''': (number) Y coordinate of this sound ''''''<br/> |
− | '''z | + | '''z''': (number) Z coordinate of this sound '''optional'''<br/> |
− | '''vx | + | '''vx''': (number) X component of this sound's velocity '''optional'''<br/> |
− | '''vy | + | '''vy''': (number) Y component of this sound's velocity '''optional'''<br/> |
− | '''vz | + | '''vz''': (number) Z component of this sound's velocity '''optional'''<br/> |
Revision as of 10:16, 23 August 2018
Available since: in development
Description
Sets the position of this sound in a 3D world
SoundChannel:setWorldPosition(x,y,z,vx,vy,vz)
'x: (number) X coordinate of this sound '
'y: (number) Y coordinate of this sound '
z: (number) Z coordinate of this sound optional
vx: (number) X component of this sound's velocity optional
vy: (number) Y component of this sound's velocity optional
vz: (number) Z component of this sound's velocity optional