
Public Member Functions | |
| void | SetGravity (float grav) |
| void | SetGroundTester (vtHeightConstrain *pEng) |
| void | SetDamping (float damp) |
| void | Eval () |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
1.4.5