From e54c6e58da5090e50b61212ceee8b3fb5032998e Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Sun, 13 Jan 2019 20:51:06 -0800 Subject: [PATCH] Read and write the DisplayToWorld transform rotation quat symmetrically. plClient writes a computed transform, but does some additional computation during the read. We may want this computed transform at some point, but for now it's easier (and better for preserving PRP identity) to just read and write the same bits avoiding all additional computation. --- core/PRP/Physics/plGenericPhysical.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/PRP/Physics/plGenericPhysical.cpp b/core/PRP/Physics/plGenericPhysical.cpp index f547b7621..3a543fd60 100644 --- a/core/PRP/Physics/plGenericPhysical.cpp +++ b/core/PRP/Physics/plGenericPhysical.cpp @@ -408,10 +408,10 @@ void plGenericPhysical::IPrcParse(const pfPrcTag* tag, plResManager* mgr) { void plGenericPhysical::IReadHKPhysical(hsStream* S, plResManager* mgr) { fPos.read(S); - float rad = S->readFloat(); - hsVector3 axis; - axis.read(S); - fRot = hsQuat(rad, axis); + fRot.W = S->readFloat(); + fRot.X = S->readFloat(); + fRot.Y = S->readFloat(); + fRot.Z = S->readFloat(); unsigned int hMemberGroup, hReportGroup, hCollideGroup; fMass = S->readFloat();