Difference between revisions of "Noise:setCellularDistance2Indices"
From GiderosMobile
(Created page with "__NOTOC__ '''<translate>Available since</translate>:''' Gideros 2019.12<br/> '''<translate>Class</translate>:''' Noise<br/> === Description === S...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
| (One intermediate revision by the same user not shown) | |||
| Line 8: | Line 8: | ||
'''Note''': index0 should be lower than index1<br/> | '''Note''': index0 should be lower than index1<br/> | ||
'''Note''': Both indices must be >= 0, index1 must be < 4 | '''Note''': Both indices must be >= 0, index1 must be < 4 | ||
| − | < | + | <syntaxhighlight lang="lua"> |
Noise:setCellularDistance2Indices(cellularDistanceIndex0, cellularDistanceIndex1) | Noise:setCellularDistance2Indices(cellularDistanceIndex0, cellularDistanceIndex1) | ||
| − | </ | + | </syntaxhighlight> |
=== Parameters === | === Parameters === | ||
Revision as of 14:30, 13 July 2023
Available since: Gideros 2019.12
Class: Noise
Description
Sets the 2 distance indices used for distance2 return types.
Default: 0, 1
Note: index0 should be lower than index1
Note: Both indices must be >= 0, index1 must be < 4
Noise:setCellularDistance2Indices(cellularDistanceIndex0, cellularDistanceIndex1)
Parameters
cellularDistanceIndex0: (number) integer distance indice 0
cellularDistanceIndex1: (number) integer distance indice 1