From 57017298e6dd58cd410718cdf5db70e05aaa6b64 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 2 Mar 2016 20:57:21 -0800 Subject: [PATCH] Fix broken rotation --- Runtime/Particle/CElementGen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Particle/CElementGen.cpp b/Runtime/Particle/CElementGen.cpp index 652d7a804..c8eb71c47 100644 --- a/Runtime/Particle/CElementGen.cpp +++ b/Runtime/Particle/CElementGen.cpp @@ -1701,7 +1701,7 @@ void CElementGen::RenderParticles() { float theta = particle.x30_lineWidthOrRota * M_PI / 180.f; float sinT = sinf(theta) * size; - float cosT = sinf(theta) * size; + float cosT = cosf(theta) * size; switch (m_shaderClass) { @@ -1836,7 +1836,7 @@ void CElementGen::RenderParticles() { float theta = particle.x30_lineWidthOrRota * M_PI / 180.f; float sinT = sinf(theta) * size; - float cosT = sinf(theta) * size; + float cosT = cosf(theta) * size; for (int i=0 ; i