Motion
Get Motion

ReferenceScripting APIMotionMathsnoise

MotionMaths.noise

method

Perlin noise along a line: smooth, -1 to 1, the same for the same x and seed.

Namenoise
Kindmethod of MotionMaths
Called asmaths.noise(…)
As a nodePerlin Noise 1D (logic graph)
Since0.4

Syntax

noise(    x: number,    seed?: number): number

Parameters

NameTypeDescription
xnumberWhere along it
seednumberOptional. Which noise (0 unless given)

Returns

number: -1 to 1.

Example

const sway = scene.maths.noise(scene.time * 0.3);