From 3856d7ac99c38bd9c7afe6b3d2610c23a069cf81 Mon Sep 17 00:00:00 2001 From: Anonymous <84868516+Captian-obvious@users.noreply.github.com> Date: Mon, 4 Dec 2023 17:22:52 -0500 Subject: [PATCH] Update Chunks.py --- Chunks.py | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Chunks.py b/Chunks.py index 9a1eb82..8f472b0 100644 --- a/Chunks.py +++ b/Chunks.py @@ -184,10 +184,36 @@ def PROP(chunk, rbxm): matricies=createTable(sizeof) for i in range(sizeof): rawOrientation=ord(buffer.read()) - if (rawOrientation>0): - orientID=rawOrientation - 1 + if rawOrientation > 0: + orientID = rawOrientation - 1 + R0=Vector3.fromNormalId(orientID // 6) + R1=Vector3.fromNormalId(orientID % 6) + R2=R0.Cross(R1) + matricies[i]=[R0, R1, R2] + else: + r00, r01, r02=buffer.readNumber("