View Issue Details

IDProjectCategoryView StatusLast Update
0000124Medieval EngineersBugpublic2022-02-05 15:20
Reporterequinox Assigned Toequinox  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.7.2 
Target Version0.7.3.33D4BBFixed in Version0.7.3.33D4BB 
Summary0000124: Particles stop updating before they get removed
Description

Particles stop being updated before they get removed. This is fine for static particles, but for particles on dynamic objects it causes them to hang in the air. We should eagerly remove them for now, and figure out a better approach (like SE's particle parenting) long term.

MyParticleManager:

// Don't update particles that are too far from the camera
Vector3D effectPos = effect.WorldMatrix.Translation;
double distance = Vector3D.DistanceSquared(effectPos, cameraPos);
if (distance >= updateDistance)
{
    if (distance > updateDistance * 10 && !effect.Loop)
        m_effectsToDelete.Add(effect);
    continue;
}
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-01-13 10:33 equinox New Issue
2022-01-13 10:33 equinox Product Version => 0.7.2
2022-01-29 21:28 equinox Target Version => 0.7.3.33D4BB
2022-01-29 21:29 equinox Assigned To => equinox
2022-01-29 21:29 equinox Status new => assigned
2022-01-29 21:29 equinox Status assigned => in progress
2022-02-05 15:20 equinox Status in progress => resolved
2022-02-05 15:20 equinox Resolution open => fixed
2022-02-05 15:20 equinox Fixed in Version => 0.7.3.33D4BB