From 47e7dba6f0147e3a37f08c05444e50b5ece42c0e Mon Sep 17 00:00:00 2001 From: Atirna <288419661+atirna@users.noreply.github.com> Date: Wed, 2 Sep 2026 05:07:34 +0530 Subject: [PATCH] Fix PHY collision mesh importing flipped Remove the Y/Z axis swap in CollisionModel.get_vertex_data so decoded collision vertices keep the same Source1 XYZ order the visual mesh importers already use. Fixes #290 --- library/models/phy/phy.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/models/phy/phy.py b/library/models/phy/phy.py index fb9325af..ed5527c9 100644 --- a/library/models/phy/phy.py +++ b/library/models/phy/phy.py @@ -151,11 +151,6 @@ def get_vertex_data(buffer: Buffer, convex_leaf: ConvexLeaf, vertex_count): vertex_data = np.frombuffer(buffer.read(4 * 4 * vertex_count), np.float32).copy() vertex_data = vertex_data.reshape((-1, 4))[:, :3] - y = vertex_data[:, 1].copy() - z = vertex_data[:, 2].copy() - vertex_data[:, 1] = z - vertex_data[:, 2] = y - return vertex_data