Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/model.ts>ModelScene#animate

A framework for Beat Saber map scripting.
Go to Latest
method ModelScene.prototype.animate
import { ModelScene } from "https://deno.land/x/remapper@3.0.0/src/model.ts";

Create an animated environment from possibly multiple sources of data.

Parameters

switches:
[
number,
number,
((event: CustomEventInternals.AnimateTrack, objects: number) => void),
]
[]

The different data switches in this environment. The format is as so: [0] - Input for ModelObjects. [1] - Time of the switch. [2]? - Duration of the animation. [3]? - Function to run on each event moving the objects.

optional
forObject: (object: GroupObjectTypes) => void

Function to run on each spawned object.