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

x/remapper/src/mod.ts>bakeAnimation

A framework for Beat Saber map scripting.
Go to Latest
function bakeAnimation
Re-export
import { bakeAnimation } from "https://deno.land/x/remapper@3.0.0/src/mod.ts";

Generate keyframes from an animation. Useful for doing things such as having objects rotate around points other than their anchor.

Parameters

animation: { pos?: RawKeyframesVec3; rot?: RawKeyframesVec3; scale?: RawKeyframesVec3; }

The keyframes for various transforms.

optional
forKeyframe: (transform: { pos: Vec3; rot: Vec3; scale: Vec3; time: number; }) => void

Runs for each generated keyframe.

optional
animFreq: number

The sampling rate of new keyframes.

optional
animOptimizer: OptimizeSettings

The optional optimizer for the keyframes.