#include <groundclamper.h>
Public Member Functions | |
| GroundClampingData () | |
| ~GroundClampingData () | |
| void | SetGroundOffset (float newOffset) |
| Sets the offset from the ground the actor should be clamped to. | |
| float | GetGroundOffset () const |
| |
| bool | GetAdjustRotationToGround () const |
| |
| void | SetAdjustRotationToGround (bool newAdjust) |
| Sets if the rotation of the actor should be changed to match the terrain. | |
| void | SetUseModelDimensions (bool newUse) |
| Set this to true to tell the DR comp than the model dimensions are now valid. Defaults to false. | |
| bool | UseModelDimensions () const |
| |
| void | SetModelDimensions (const osg::Vec3 &newDimensions) |
| Sets the model dimensions of this helper. This will call SetUseModelDimensions(true) internally. | |
| const osg::Vec3 & | GetModelDimensions () const |
| |
| void | SetLastClampedOffset (float newClampedOffset) |
| Sets the last known offset from the existing the position to the terrain. | |
| float | GetLastClampedOffset () const |
| |
| void | SetLastClampedTime (double newTime) |
| double | GetLastClampedTime () const |
| dtGame::GroundClampingData::GroundClampingData | ( | ) |
| dtGame::GroundClampingData::~GroundClampingData | ( | ) |
| void dtGame::GroundClampingData::SetGroundOffset | ( | float | newOffset | ) | [inline] |
Sets the offset from the ground the actor should be clamped to.
This only matters if flying is set to false.
| newOffset | the new offset value. |
| float dtGame::GroundClampingData::GetGroundOffset | ( | ) | const [inline] |
| bool dtGame::GroundClampingData::GetAdjustRotationToGround | ( | ) | const [inline] |
| void dtGame::GroundClampingData::SetAdjustRotationToGround | ( | bool | newAdjust | ) | [inline] |
Sets if the rotation of the actor should be changed to match the terrain.
| newFlying | the new value to set. |
| void dtGame::GroundClampingData::SetUseModelDimensions | ( | bool | newUse | ) | [inline] |
Set this to true to tell the DR comp than the model dimensions are now valid. Defaults to false.
| bool dtGame::GroundClampingData::UseModelDimensions | ( | ) | const [inline] |
| void dtGame::GroundClampingData::SetModelDimensions | ( | const osg::Vec3 & | newDimensions | ) | [inline] |
Sets the model dimensions of this helper. This will call SetUseModelDimensions(true) internally.
| const osg::Vec3& dtGame::GroundClampingData::GetModelDimensions | ( | ) | const [inline] |
| void dtGame::GroundClampingData::SetLastClampedOffset | ( | float | newClampedOffset | ) | [inline] |
Sets the last known offset from the existing the position to the terrain.
| float dtGame::GroundClampingData::GetLastClampedOffset | ( | ) | const [inline] |
| void dtGame::GroundClampingData::SetLastClampedTime | ( | double | newTime | ) | [inline] |
| double dtGame::GroundClampingData::GetLastClampedTime | ( | ) | const [inline] |