mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:18:05 +02:00
Fix particle emit directions for point emitter
This commit is contained in:
parent
d063f3488d
commit
629128c17f
1 changed files with 2 additions and 2 deletions
|
@ -711,10 +711,10 @@ void ParticleEffectEntityItem::stepSimulation(float deltaTime) {
|
||||||
|
|
||||||
if (_emitDimensions == glm::vec3()) {
|
if (_emitDimensions == glm::vec3()) {
|
||||||
// Point
|
// Point
|
||||||
emitDirection = _emitOrientation * fromSpherical(elevation, azimuth);
|
emitDirection = glm::angleAxis(PI_OVER_TWO - elevation, X_AXIS) * Z_AXIS;
|
||||||
|
emitDirection = glm::angleAxis(azimuth, Z_AXIS) * emitDirection;
|
||||||
|
|
||||||
_particlePositions[i] = getPosition();
|
_particlePositions[i] = getPosition();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Ellipsoid
|
// Ellipsoid
|
||||||
float radiusScale = 1.0f;
|
float radiusScale = 1.0f;
|
||||||
|
|
Loading…
Reference in a new issue