diff --git a/src/graphics/particle_emitter.cpp b/src/graphics/particle_emitter.cpp index 4d26affd2..583a87438 100644 --- a/src/graphics/particle_emitter.cpp +++ b/src/graphics/particle_emitter.cpp @@ -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