ReferenceScripting APIMotionMathsnoise
MotionMaths.noise
methodPerlin noise along a line: smooth, -1 to 1, the same for the same x and seed.
| Name | noise |
|---|---|
| Kind | method of MotionMaths |
| Called as | maths.noise(…) |
| As a node | Perlin Noise 1D (logic graph) |
| Since | 0.4 |
Syntax
noise( x: number, seed?: number): numberParameters
| Name | Type | Description |
|---|---|---|
x | number | Where along it |
seed | number | Optional. Which noise (0 unless given) |
Returns
number: -1 to 1.
Example
const sway = scene.maths.noise(scene.time * 0.3);Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.