![Logo](../../rorlogo.png) |
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
67 void addBlock(Ogre::Vector3 pos, Ogre::Quaternion rot,
RoadType type,
float width,
float bwidth,
float bheight,
int pillartype = 1);
72 void addQuad(Ogre::Vector3 p1, Ogre::Vector3 p2, Ogre::Vector3 p3, Ogre::Vector3 p4,
TextureFit texfit, Ogre::Vector3 pos, Ogre::Vector3
lastpos,
float width,
bool flip =
false);
74 void addCollisionQuad(Ogre::Vector3 p1, Ogre::Vector3 p2, Ogre::Vector3 p3, Ogre::Vector3 p4, std::string
const& gm_name,
bool flip =
false);
84 inline Ogre::Vector3
baseOf(Ogre::Vector3 p);
85 void computePoints(Ogre::Vector3* pts, Ogre::Vector3 pos, Ogre::Quaternion rot,
RoadType type,
float width,
float bwidth,
float bheight);
86 void textureFit(Ogre::Vector3 p1, Ogre::Vector3 p2, Ogre::Vector3 p3, Ogre::Vector3 p4,
TextureFit texfit, Ogre::Vector2* texc, Ogre::Vector3 pos, Ogre::Vector3
lastpos,
float width);
bool collision
Register collision triangles?
static const unsigned int MAX_TRIS
void addQuad(Ogre::Vector3 p1, Ogre::Vector3 p2, Ogre::Vector3 p3, Ogre::Vector3 p4, TextureFit texfit, Ogre::Vector3 pos, Ogre::Vector3 lastpos, float width, bool flip=false)
uint16_t tris[MAX_TRIS *3]
virtual ~ProceduralRoad() override
void setCollisionEnabled(bool v)
void finish(Ogre::SceneNode *snode)
Ogre::Vector3 vertex[MAX_VERTEX]
void textureFit(Ogre::Vector3 p1, Ogre::Vector3 p2, Ogre::Vector3 p3, Ogre::Vector3 p4, TextureFit texfit, Ogre::Vector2 *texc, Ogre::Vector3 pos, Ogre::Vector3 lastpos, float width)
void addBlock(Ogre::Vector3 pos, Ogre::Quaternion rot, RoadType type, float width, float bwidth, float bheight, int pillartype=1)
static const unsigned int MAX_VERTEX
std::vector< int > registeredCollTris
Central state/object manager and communications hub.
Ogre::Vector2 tex[MAX_VERTEX]
Ogre::Vector3 baseOf(Ogre::Vector3 p)
Surface friction properties.
void computePoints(Ogre::Vector3 *pts, Ogre::Vector3 pos, Ogre::Quaternion rot, RoadType type, float width, float bwidth, float bheight)
void addCollisionQuad(Ogre::Vector3 p1, Ogre::Vector3 p2, Ogre::Vector3 p3, Ogre::Vector3 p4, ground_model_t *gm, bool flip=false)
Self reference-counting objects, as requred by AngelScript garbage collector.