![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Geometry built by the script, vertex by vertex.
Binding of Ogre::ManualObject.
SceneManager::createManualObject() and attach it to a SceneNode. Each section is defined by begin(), followed by vertices (position() first, then optionally normal(), textureCoord(), colour()), optionally index()es, and finally end(). MovableObject - the handle converts implicitly, and MovableObject handles can be cast back. Definition at line 20 of file AngelOgre_ManualObject.h.
Public Member Functions | |
| void | begin (const string &in materialName, RenderOperation opType, const string &in rg) |
| void | beginUpdate () |
| void | position (const vector3 &in pos) |
| void | normal (const vector3 &in norm) |
| void | textureCoord (float u, float v) |
| void | textureCoord (const vector2 &in uv) |
| void | textureCoord (const vector3 &in uvw) |
| void | colour (const color &in col) |
| void | index (uint32 idx) |
| void | end () |
| uint | getCurrentVertexCount () |
| void | getCurrentIndexCount () |
| MeshPtr | convertToMesh (const string &in name, const string &in group='General') |
| void AngelOgre::ManualObject::begin | ( | const string &in | materialName, |
| RenderOperation | opType, | ||
| const string &in | rg | ||
| ) |
Starts defining a new section.
| materialName | Material to use for this section. |
| opType | Type of primitives, see RenderOperation. |
| rg | Resource group of the material. |
| void AngelOgre::ManualObject::beginUpdate | ( | ) |
Starts re-defining an existing section (the next one), for dynamic geometry.
| void AngelOgre::ManualObject::colour | ( | const color &in | col | ) |
Sets the colour of the current vertex.
| MeshPtr AngelOgre::ManualObject::convertToMesh | ( | const string &in | name, |
| const string &in | group = 'General' |
||
| ) |
Converts the geometry to a mesh, which can then be used to create entities.
| name | Name of the new mesh. |
| group | Resource group of the new mesh. |
| void AngelOgre::ManualObject::end | ( | ) |
Finishes the current section.
| void AngelOgre::ManualObject::getCurrentIndexCount | ( | ) |
Number of indices in the section being defined.
void. | uint AngelOgre::ManualObject::getCurrentVertexCount | ( | ) |
Number of vertices in the section being defined.
| void AngelOgre::ManualObject::index | ( | uint32 | idx | ) |
Adds a vertex index; if you don't add any, vertices are used in order.
| void AngelOgre::ManualObject::normal | ( | const vector3 &in | norm | ) |
Sets the normal of the current vertex.
| void AngelOgre::ManualObject::position | ( | const vector3 &in | pos | ) |
Adds a vertex at the given position; call the other vertex attribute methods after this.
| void AngelOgre::ManualObject::textureCoord | ( | const vector2 &in | uv | ) |
Sets a 2D texture coordinate of the current vertex.
| void AngelOgre::ManualObject::textureCoord | ( | const vector3 &in | uvw | ) |
Sets a 3D texture coordinate of the current vertex.
| void AngelOgre::ManualObject::textureCoord | ( | float | u, |
| float | v | ||
| ) |
Sets a 2D texture coordinate of the current vertex.