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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user