Opened 5 years ago

Last modified 5 years ago

#5400 new defect

Add a timeout to particle emitters

Reported by: Stan Owned by:
Priority: Should Have Milestone: Backlog
Component: Simulation Keywords:
Cc: Patch:

Description

Currently there is no way to tell a particle emitter to stop. This would be particularly useful for muzzle flashes on guns. Currently to make them work you have to rig the particle to a skeleton and make it disappear below the ground. That's an issue because particles are being produced even below the ground, and might be rendered as well. Related files are:

source/simulation2/components/CCmpParticleManager.cpp
source/simulation2/components/ICmpParticleManager.cpp
source/simulation2/components/ICmpParticleManager.h
source/simulation2/components/ICmpParticleManager.h
source/graphics/ParticleEmitter.cpp
source/graphics/ParticleEmitter.h
source/graphics/ParticleEmitterType.cpp
source/graphics/ParticleEmitterType.h
source/graphics/ParticleManager.cpp
source/graphics/ParticleManager.h

The timeout should be configurable. The particle should appear each time the gun fires.

Thread: https://wildfiregames.com/forum/index.php?/topic/25280-black-powder-test/&tab=comments#comment-367870

Change History (1)

comment:1 by Imarok, 5 years ago

Component: UI & SimulationSimulation

Move tickets to Simulation as UI & Simulation got some sub components.

Note: See TracTickets for help on using tickets.