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(xyzvxvyvz,)
+
SoundChannel:setWorldPosition(x,y,z,vx,vy,vz)
 
</source>
 
</source>
'''x:''' (number) X coordinate of this sound ''''''<br/>
+
'''x''': (number) X coordinate of this sound ''''''<br/>
'''y:''' (number) Y coordinate of this sound ''''''<br/>
+
'''y''': (number) Y coordinate of this sound ''''''<br/>
'''z:''' (number) Z coordinate of this sound '''optional'''<br/>
+
'''z''': (number) Z coordinate of this sound '''optional'''<br/>
'''vx:''' (number) X component of this sound's velocity '''optional'''<br/>
+
'''vx''': (number) X component of this sound's velocity '''optional'''<br/>
'''vy:''' (number) Y component of this sound's velocity '''optional'''<br/>
+
'''vy''': (number) Y component of this sound's velocity '''optional'''<br/>
'''vz:''' (number) Z component of this sound's velocity '''optional'''<br/>
+
'''vz''': (number) Z component of this sound's velocity '''optional'''<br/>

Revision as of 11: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