Fix centering issues

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7291 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-01-06 01:06:52 +00:00
parent 3eeca13ce3
commit aa6c225684

@ -84,7 +84,7 @@ ParticleEmitter::ParticleEmitter(ParticleKind* type, core::vector3df position,
const float box_x = type->getBoxSizeX()/2.0f;
const float box_y = type->getBoxSizeY()/2.0f;
const float box_z = type->getBoxSizeZ()/2.0f;
m_node->setPosition(core::vector3df(position.X + box_x, position.Y + box_y, position.Z + box_z));
m_node->setPosition(position);
m_emitter = m_node->createBoxEmitter(core::aabbox3df(-box_x, -box_y, -box_z,
box_x, box_y, box_z),
core::vector3df(0.0f, 0.0f, 5.0f), // velocity in m/ms