This commit is contained in:
2026-10-02 11:07:09 -03:00
parent d5015edfa1
commit 9ca717d2d0
18 changed files with 449 additions and 38 deletions
+3 -1
View File
@@ -65,7 +65,9 @@ const FACES: { rect: (w: number, h: number, d: number) => number[]; corners: num
export function player_pose(player: Player, partial_tick: number): PlayerPose {
const { x, y, z } = player.render_position(partial_tick);
const { yaw, pitch, slim } = player;
return pose_at({ x, y, z, yaw, pitch, slim, walk: player.walk_animation(partial_tick) });
const walk = player.walk_animation(partial_tick);
const swim = player.render_swim(partial_tick);
return pose_at({ x, y, z, yaw, pitch, slim, walk, swim, time: player.level.time + partial_tick });
}
// a player with a minecraft skin, like minecraft's PlayerRenderer. the skin has to be the current texture. tint