Bladeren bron

"angles now more in line with panda's coordinate system"

Josh Wilson 18 jaren geleden
bovenliggende
commit
176e3f7129
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      panda/src/particlesystem/arcEmitter.cxx

+ 1 - 0
panda/src/particlesystem/arcEmitter.cxx

@@ -74,6 +74,7 @@ assign_initial_position(LPoint3f& pos) {
     theta = LERP(NORMALIZED_RAND(), _start_theta, _end_theta + 2.0f * MathNumbers::pi_f);
     theta = LERP(NORMALIZED_RAND(), _start_theta, _end_theta + 2.0f * MathNumbers::pi_f);
   }    
   }    
   
   
+  theta += (MathNumbers::pi_f / 2.0);
   this->_cos_theta = cosf(theta);
   this->_cos_theta = cosf(theta);
   this->_sin_theta = sinf(theta);
   this->_sin_theta = sinf(theta);