Animation system mostly done

This commit is contained in:
2026-11-22 09:12:15 -03:00
parent 8a13854f39
commit 487d5ae2a9
7 changed files with 31 additions and 10 deletions
+5 -2
View File
@@ -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";
+3 -2
View File
@@ -1,8 +1,9 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// mods' entity animators, see ClientRender.register_entity_animator and ANIMATION.md. each entity of a type with one
// gets its own, made with the entity, which says what its model's bones do every frame it's drawn
// mods' entity animators, see ClientRender.register_entity_animator and docs/modding/entities/index.md#animators. each
// entity of a type with one gets its own, made with the entity, which says what its model's bones do every frame it's
// drawn
import type { AnimatedEntity, Clip, EntityAnimator, EntityPose } from "@/common/mod_api/client.ts";
import type { ClipJson } from "@/common/mod_data.ts";
import type { EntityData } from "@/common/protocol.ts";