#include <TrackMesh.h>
Public Member Functions | |
TrackMesh (std::istream &source) | |
Create from a description in a stream. | |
virtual | ~TrackMesh () |
btScalar | get_maximum_bend () const |
The sharpest corner in radians this track mesh can manage. | |
btScalar | get_length () const |
Get the length of the segment. | |
btScalar | get_minimum_y () const |
Get the minimum y value of all vertices in the mesh. | |
T | get_distorted_faces (PieceDistortion piece_distortion) const |
get the faces of a distorted mesh. | |
T | get_distorted_faces (btTransform tranform) const |
get the faces of a linearly transformed mesh. | |
const T & | get_faces () const |
get non-distorted mesh. | |
Protected Attributes | |
float | maximum_bend |
The maximum bend a PieceDistortion should have when applied to this mesh. | |
float | length |
length between end connections (may not be applicable). | |
btScalar | minimum_y |
The lowest y value of all vertices' positions in the mesh. | |
btScalar | maximum_y |
The heighest y value of all vertices' positions in the mesh. | |
T | mesh |
The mesh with no distortion. |
A theme contains a variety of Segments for different looks and purposes, which define a few TrackMeshes each (for physics, AI, graphics).
A TrackMesh is linked to from TrackMeshInstances. T class to use as the mesh. Should behave like MeshFaces.
Definition at line 37 of file TrackMesh.h.
Track::TrackMesh< T >::TrackMesh | ( | std::istream & | source | ) |
Create from a description in a stream.
Advances the stream to the end of the TrackMesh.
Definition at line 97 of file TrackMesh.h.
Track::TrackMesh< T >::~TrackMesh | ( | ) | [virtual] |
Definition at line 118 of file TrackMesh.h.
T Track::TrackMesh< T >::get_distorted_faces | ( | btTransform | tranform | ) | const |
get the faces of a linearly transformed mesh.
This is useful for getting collision shapes.
Graphics meshes should use get_faces(), and do transformations in the graphics pipeline instead for better memory use.
Definition at line 162 of file TrackMesh.h.
T Track::TrackMesh< T >::get_distorted_faces | ( | PieceDistortion | piece_distortion | ) | const |
get the faces of a distorted mesh.
This is useful for distorting a navigation mesh for AI.
Definition at line 141 of file TrackMesh.h.
const T & Track::TrackMesh< T >::get_faces | ( | ) | const |
btScalar Track::TrackMesh< T >::get_length | ( | ) | const |
btScalar Track::TrackMesh< T >::get_maximum_bend | ( | ) | const |
The sharpest corner in radians this track mesh can manage.
It is determined algorithmically from the mesh's shape.
Definition at line 123 of file TrackMesh.h.
btScalar Track::TrackMesh< T >::get_minimum_y | ( | ) | const |
float Track::TrackMesh< T >::length [protected] |
float Track::TrackMesh< T >::maximum_bend [protected] |
The maximum bend a PieceDistortion should have when applied to this mesh.
Any more and the vertices of the mesh will cross the wrong way.
Definition at line 81 of file TrackMesh.h.
btScalar Track::TrackMesh< T >::maximum_y [protected] |
The heighest y value of all vertices' positions in the mesh.
Definition at line 90 of file TrackMesh.h.
T Track::TrackMesh< T >::mesh [protected] |
btScalar Track::TrackMesh< T >::minimum_y [protected] |
The lowest y value of all vertices' positions in the mesh.
Definition at line 87 of file TrackMesh.h.
Generated at Mon Sep 6 00:41:19 2010 by Doxygen version 1.4.7 for Racer version svn335.