From 926cb9da2975c81a9c5d12bbd38856a2127f6637 Mon Sep 17 00:00:00 2001 From: Axel Meyer Date: Mon, 18 May 2026 20:42:13 +0200 Subject: [PATCH] =?UTF-8?q?fix(vagrant):=20head=20sprite=5Frot=3D-90=20cor?= =?UTF-8?q?rects=2090=C2=B0=20CW=20visual=20offset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit head_001.png is drawn with face pointing +X (right) at rot=0, but the look-at math assumes sprite-top (-Y) is forward. Without compensation, head visually appears 90° clockwise off when math says 'point at mouse'. sprite_rot=-90 on head bone aligns sprite-top with bone-forward at render time. Body, shoulder, and arm sprites already match the sprite-top=forward convention so no sprite_rot needed there. Also bumps puppet dep to 0.3.3 and removes the temporary debug print. --- manifest.module | 2 +- rigs/humanoid.rig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.module b/manifest.module index 8f44621..d86257b 100644 --- a/manifest.module +++ b/manifest.module @@ -15,7 +15,7 @@ {"id": "lib-core.camera", "version": "0.3.0"}, {"id": "lib-core.render", "version": "0.1.0"}, {"id": "lib-core.maps", "version": "0.1.2"}, - {"id": "lib-core.puppet", "version": "0.3.2"}, + {"id": "lib-core.puppet", "version": "0.3.3"}, {"id": "lib-asset.prototype-subterrain", "version": "0.1.1"} ] } diff --git a/rigs/humanoid.rig.json b/rigs/humanoid.rig.json index b987ee2..904c222 100644 --- a/rigs/humanoid.rig.json +++ b/rigs/humanoid.rig.json @@ -4,7 +4,7 @@ "bones": [ { "id": "root", "parent": null, "rest": {"x": 0, "y": 0, "rot": 0}, "z_order": -1 }, { "id": "body", "parent": "root", "rest": {"x": 0, "y": 0, "rot": 0}, "z_order": 2, "texture": "body_001", "look_at": true, "look_at_speed": 180 }, - { "id": "head", "parent": "body", "rest": {"x": 0, "y": -3, "rot": 0, "rot_min": -90, "rot_max": 90}, "z_order": 6, "texture": "head_001", "look_at": true }, + { "id": "head", "parent": "body", "rest": {"x": 0, "y": -3, "rot": 0, "rot_min": -90, "rot_max": 90}, "z_order": 6, "texture": "head_001", "look_at": true, "sprite_rot": -90 }, { "id": "shoulders", "parent": "body", "rest": {"x": 0, "y": 0, "rot": 0}, "z_order": 5, "texture": "shoulder_001" }, { "id": "upper_arm_l", "parent": "shoulders", "rest": {"x": -19, "y": -3, "rot": 0, "scl": [-1, 1]}, "z_order": 3, "texture": "upper_arm_001" }, { "id": "upper_arm_r", "parent": "shoulders", "rest": {"x": 20, "y": -4, "rot": 0}, "z_order": 3, "texture": "upper_arm_001" },