This class stores information about the triangle that's under an object, i.e.
More...
|
|
| TerrainInfo () |
| | Constructor to initialise terrain data.
|
| |
| | TerrainInfo (const Vec3 &pos) |
| | Constructor to initialise terrain data at a given position. More...
|
| |
| bool | getSurfaceInfo (const Vec3 &from, Vec3 *position, const Material **m) |
| | Does a raycast upwards from the given position If the raycast indicated that the kart is 'under something' (i.e. More...
|
| |
| virtual void | update (const btMatrix3x3 &rotation, const Vec3 &from) |
| | Update the terrain information based on the latest position. More...
|
| |
| virtual void | update (const Vec3 &from) |
| | Update the terrain information based on the latest position. More...
|
| |
| virtual void | update (const Vec3 &from, const Vec3 &towards) |
| | Update the terrain information based on the latest position. More...
|
| |
|
virtual void | update (const btMatrix3x3 &rotation) |
| | Simple wrapper with no offset.
|
| |
| float | getHoT () const |
| | Returns the height of the terrain. More...
|
| |
|
const Material * | getMaterial () const |
| | Returns the current material the kart is on.
|
| |
|
const Material * | getLastMaterial () const |
| | Returns the previous material the kart was one (which might be the same as getMaterial() ).
|
| |
|
const Vec3 & | getNormal () const |
| | Returns the normal of the terrain the kart is on.
|
| |
|
float | getTerrainPitch (float heading) const |
| | Returns the pitch of the terrain depending on the heading.
|
| |
|
const btVector3 & | getHitPoint () const |
| | Returns the hit point of the raycast.
|
| |
|
const Vec3 & | getOrigin () const |
| |
This class stores information about the triangle that's under an object, i.e.
: the normal, a pointer to the material, and the height above th