Motion
Get Motion

ReferenceScripting APIMotionMathswrap

MotionMaths.wrap

method

A value wrapped round to stay within lo and hi.

Namewrap
Kindmethod of MotionMaths
Called asmaths.wrap(…)
As a nodeWrap (logic graph)
Since0.4

Syntax

wrap(    v: number,    lo: number,    hi: number): number

Parameters

NameTypeDescription
vnumberThe value
lonumberThe lowest
hinumberThe highest (not reached)

Returns

number: the value, wrapped.