Constructors
constructor
- new MultiDynamic<T extends Record<string, Dynamic>>(
fn: (val: Record<keyof T, number>) => void,
dynamics: T,
): MultiDynamic<T> Parameters
- fn: (val: Record<keyof T, number>) => void
- dynamics: T
Accessors
current
- get current(): Record<keyof T, number>
Returns Record<keyof T, number>
Methods
goto
- goto(positions: Partial<Record<keyof T, number>>, speedMult?: number): void
Parameters
- positions: Partial<Record<keyof T, number>>
- speedMult: number = 1
Returns void
roll
- roll(rolls: Partial<Record<keyof T, boolean>>, speedMult?: number): void
Parameters
- rolls: Partial<Record<keyof T, boolean>>
- speedMult: number = 1
Returns void
setSpeed
- setSpeed(speed: number): void
Returns void
setValue
- setValue(values: Partial<Record<keyof T, number>>): boolean
Parameters
- values: Partial<Record<keyof T, number>>
Returns boolean
step
- step(steps: Partial<Record<keyof T, number>>, speedMult?: number): void
Parameters
- steps: Partial<Record<keyof T, number>>
- speedMult: number = 1
Returns void
Wrapper for multiple Dynamic evolving together