29 #ifndef __WINDPHYSICSMODEL_H__
30 #define __WINDPHYSICSMODEL_H__
69 Inst< SFBool > _enabled = 0,
70 Inst< SFVec3f > _direction = 0,
71 Inst< SFFloat > _gustiness = 0,
72 Inst< SFFloat > _speed = 0,
73 Inst< SFFloat > _turbulence = 0 );
78 virtual void updateParticleValues(
79 const X3DParticleEmitterNode::Particle &last_particle,
80 X3DParticleEmitterNode::Particle &particle,
Header file for X3DParticlePhysicsModelNode, X3D scene-graph node.
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
The WindPhysicsModel node specifies a physics model that applies a wind effect to the particles.
Definition: WindPhysicsModel.h:64
H3DUniquePtr< SFFloat > gustiness
The gustiness specifies how much the wind speed varies from the average value defined by the speed fi...
Definition: WindPhysicsModel.h:98
H3DUniquePtr< SFFloat > speed
The speed field specifies the current wind speed in metres per second.
Definition: WindPhysicsModel.h:105
H3DUniquePtr< SFVec3f > direction
The direction field specifies the direction in which the wind is travelling in the form of a normaliz...
Definition: WindPhysicsModel.h:89
H3DUniquePtr< SFFloat > turbulence
The turbulence field specifies how much the wind acts directly in line with the direction,...
Definition: WindPhysicsModel.h:115
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: WindPhysicsModel.h:118
H3DFloat wind_speed
The wind speed updated once per frame with gustiness taken into consideration.
Definition: WindPhysicsModel.h:123
The X3DParticlePhysicsModelNode is the abstract representation of any node that will apply a form of ...
Definition: X3DParticlePhysicsModelNode.h:46
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194