Cyclone Cyclone: cyclone::Gravity Class Reference

cyclone::Gravity Class Reference

A force generator that applies a gravitational force. More...

#include <fgen.h>

Inheritance diagram for cyclone::Gravity:

Inheritance graph
[legend]
Collaboration diagram for cyclone::Gravity:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Gravity (const Vector3 &gravity)
 Creates the generator with the given acceleration.
virtual void updateForce (RigidBody *body, real duration)
 Applies the gravitational force to the given rigid body.

Detailed Description

A force generator that applies a gravitational force.

One instance can be used for multiple rigid bodies.


Constructor & Destructor Documentation

cyclone::Gravity::Gravity const Vector3 gravity  ) 
 

Creates the generator with the given acceleration.


Member Function Documentation

virtual void cyclone::Gravity::updateForce RigidBody body,
real  duration
[virtual]
 

Applies the gravitational force to the given rigid body.

Implements cyclone::ForceGenerator.


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