Animation system mostly done
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// playing clips (see ANIMATION.md): what one does to the bones it moves at a time into it, sampled the way
|
||||
// blockbench's timeline does a bedrock animation. no drawing here, so tests can use it
|
||||
// playing clips (see ClipJson): what one does to the bones it moves at a time into it, sampled the way blockbench's
|
||||
// timeline does a bedrock animation. what the format means comes from ports/blockbench: reading a file in
|
||||
// js/formats/bedrock/bedrock_animation.js, picking and blending the keyframes around a time in
|
||||
// js/animations/timeline_animators.js's interpolate(), the curves in js/animations/keyframe.js, and what that does to
|
||||
// a bone in displayRotation/Position/Scale. no drawing here, so tests can use it
|
||||
import type { ClipJson, ClipKeyframe } from "@/common/mod_data.ts";
|
||||
import { lerp } from "@/common/worldgen/noise.ts";
|
||||
import type { BoneOffsets, Vec3 } from "./model_math.ts";
|
||||
|
||||
Reference in New Issue
Block a user