RE: [Plib-users] Particle System
Brought to you by:
sjbaker
From: Norman V. <nh...@ca...> - 2004-09-13 11:27:18
|
Luca writes: > > I'm tring to add a particle system to FlightGear due to the > last improvments of the simulator (i.e. the capability to > load external models at run time ecc...). > Unfortunatly, I've a big problem. The ssgaParticleSystem > doesn't allow to create particles where the coordinates > remains unchanged. In other words, if I add a particle system > to the airplane and I run it, the trail of smoke follows > every movement of the parent (if the aircraft climbs even > the particles already created moves). > > So, the question is: there's a way to create a particle > system where the coords of the particles, when they are > created, remain unchanged for the whole life? Luca, My guess is that you are including the current position of the aircraft not a copy of the aircraft position at the time that the particle was created in the SceneGraph hence as the aircraft moves and the aircraft matrix is updated the particles move. i.e. the particle system needs to be in its own subgraph below the scenegraph root *not* below the aircaft in the scenegraph. HTH Norman |