Motion
Get Motion

ReferenceScripting APIMotionMathsremap

MotionMaths.remap

method

A value from one range to another.

Nameremap
Kindmethod of MotionMaths
Called asmaths.remap(…)
As a nodeRemap Clamped (logic graph)
Since0.4

Syntax

remap(    v: number,    a0: number,    a1: number,    b0: number,    b1: number,    clamp?: boolean): number

Parameters

NameTypeDescription
vnumberThe value
a0numberIts range's start
a1numberIts range's end
b0numberThe new range's start
b1numberThe new range's end
clampbooleanOptional. Keep it within the new range

Returns

number: the value in the new range.