Difference between revisions of "SoundChannel:setWorldPosition"

From GiderosMobile
(removed language stuff)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' in development<br/>
'''<translate>Available since</translate>:''' in development<br/>
+
'''Class:''' [[SoundChannel]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/SoundChannel|SoundChannel]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Sets the position of this sound in a 3D world</translate>
+
Sets the position of this sound in a 3D world.
 
<source lang="lua">
 
<source lang="lua">
SoundChannel:setWorldPosition(x,y,z,vx,vy,vz)
+
SoundChannel:setWorldPosition(x,y,z,vx,vy,vz)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''x''': (number) <translate>X coordinate of this sound</translate> <br/>
+
=== Parameters ===
'''y''': (number) <translate>Y coordinate of this sound</translate> <br/>
+
'''x''': (number) sound x coordinate<br/>
'''z''': (number) <translate>Z coordinate of this sound</translate> '''optional'''<br/>
+
'''y''': (number) sound y coordinate<br/>
'''vx''': (number) <translate>X component of this sound's velocity</translate> '''optional'''<br/>
+
'''z''': (number) sound z coordinate '''optional'''<br/>
'''vy''': (number) <translate>Y component of this sound's velocity</translate> '''optional'''<br/>
+
'''vx''': (number) sound velocity x component '''optional'''<br/>
'''vz''': (number) <translate>Z component of this sound's velocity</translate> '''optional'''<br/>
+
'''vy''': (number) sound velocity y component '''optional'''<br/>
 +
'''vz''': (number) sound velocity z component '''optional'''<br/>
  
 
{{SoundChannel}}
 
{{SoundChannel}}

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