vtlib library
Public Member Functions
VFlyer Class Reference
Inheritance diagram for VFlyer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void SetGravity (float grav)
void SetGroundTester (vtHeightConstrain *pEng)
void SetDamping (float damp)
void Eval ()

Detailed Description

Similar to vtTerrainFlyer, but a velocity is maintained. Viewpoint moves even after mouse button is released.


Member Function Documentation

void VFlyer::Eval ( ) [virtual]

Virtual handler, will be called every frame to do the work of the engine. You must override this if you want your engine to be useful.

Reimplemented from vtTerrainFlyer.

void VFlyer::SetDamping ( float  damp) [inline]

Set the damping of the velocity, per second. For example, a value of 0.9 would reduce the velocity by 10% of its magnitude per second.

void VFlyer::SetGravity ( float  grav) [inline]

Set the downward acceleration, in meter per second squared. For example, a value of 9.81 would be normal gravity at the earth's surface.

void VFlyer::SetGroundTester ( vtHeightConstrain pEng) [inline]

In order for gravity to cease when the target is prevented from falling, e.g. when it is sitting on the ground, supply the engine you are using to keep the target above the ground.

 All Classes Files Functions Variables Friends