}
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
-
+
static const osg::Vec3 &getGravityVector()
{
return gravity;
return wind;
}
+ static void setSwitch(const SGPropertyNode* n)
+ {
+ enabledNode = n;
+ }
+
+ static bool getEnabled()
+ {
+ return enabled;
+ }
+
private:
static osg::Vec3 gravity;
static osg::Vec3 wind;
const SGPropertyNode* modelRoot;
+ static SGConstPropertyNode_ptr enabledNode;
+ static bool enabled;
};
return psu.get();
}
+ static void setFrozen(bool e) { _frozen = e; }
+
/**
* Set and get the wind vector for particles in the
* atmosphere. This vector is in the Z-up Y-north frame, and the
bool useGravity;
bool useWind;
+ static bool _frozen;
static osg::ref_ptr<osgParticle::ParticleSystemUpdater> psu;
static osg::ref_ptr<osg::Group> commonRoot;
static osg::ref_ptr<osg::Geode> commonGeode;