From de70388dfba952ff06afb8d9c6d7ee54568fe6a3 Mon Sep 17 00:00:00 2001 From: lindaandersson Date: Thu, 20 Feb 2014 13:35:51 +0100 Subject: [PATCH] world matrix for RB on client fix --- Code/Game/GameClient/GameClientState/C_Object.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Code/Game/GameClient/GameClientState/C_Object.cpp b/Code/Game/GameClient/GameClientState/C_Object.cpp index b4f18d34..67146770 100644 --- a/Code/Game/GameClient/GameClientState/C_Object.cpp +++ b/Code/Game/GameClient/GameClientState/C_Object.cpp @@ -138,9 +138,9 @@ bool C_Object::InitRB(RBInitData RBInit) } void C_Object::updateRBWorld() { - Oyster::Math3D::Float4x4 translation = Oyster::Math3D::TranslationMatrix(this->position); - Oyster::Math3D::Float4x4 rot = Oyster::Math3D::RotationMatrix(this->rotation); - Oyster::Math3D::Float4x4 scale = Oyster::Math3D::ScalingMatrix(this->scale); + Oyster::Math3D::Float4x4 translation = Oyster::Math3D::TranslationMatrix(this->RBposition); + Oyster::Math3D::Float4x4 rot = Oyster::Math3D::RotationMatrix(this->RBrotation); + Oyster::Math3D::Float4x4 scale = Oyster::Math3D::ScalingMatrix(this->RBscale); RBworld = translation * rot * scale; } Oyster::Math::Float4x4 C_Object::getRBWorld() const