H3D::GravityPhysicsModel Class Reference
[X3D node classes.]

The GravityPhysicsModel node specifies a physics model that applies a constant gravity value to the particles. More...

#include <H3D/GravityPhysicsModel.h>

Inheritance diagram for H3D::GravityPhysicsModel:

Inheritance graph

List of all members.

Public Member Functions

 GravityPhysicsModel (Inst< SFNode > _metadata=0, Inst< SFBool > _enabled=0, Inst< SFVec3f > _gravity=0)
 Constructor.

Public Attributes

auto_ptr< SFVec3fgravity
 The gravity field is used to indicate the strength and direction of the force of gravity that should be applied.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

The GravityPhysicsModel node specifies a physics model that applies a constant gravity value to the particles.

Gravity may act in any given direction vector at any strength.

The gravity field is used to indicate the strength and direction of the force of gravity that should be applied. Force is specified in metres per seconds-squared (m/s2). If the particles are defined to have zero mass by the emitter, the GravityPhysicsModel node has no effect.


Member Data Documentation

The gravity field is used to indicate the strength and direction of the force of gravity that should be applied.

Gravity is specified in metres per seconds-squared (m/s2).

Access type: inputOutput
Default value: Vec3f( 0, -9.8, 0 )

Referenced by GravityPhysicsModel().


The documentation for this class was generated from the following files:

Generated on Fri Nov 7 10:30:12 2008 for H3D API by  doxygen 1.5.7