Introduce osgParticle::ParticleSystem::s/getParticleScaleReferenceFrame() to

help manage the scaling of particles, whether they should be relative to the
local coordiante frame of the particle system, or be in world coordinates.
This commit is contained in:
Robert Osfield
2008-03-17 12:09:05 +00:00
parent 7ec5673a7e
commit 00f161ca35
4 changed files with 68 additions and 15 deletions

View File

@@ -165,6 +165,8 @@ void ParticleEffect::buildEffect()
if (_useLocalParticleSystem)
{
particleSystem->setParticleScaleReferenceFrame(ParticleSystem::LOCAL_COORDINATES);
// add the geode to the scene graph
osg::Geode* geode = new osg::Geode;
geode->addDrawable(particleSystem.get());