![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Binding of RoR::ProceduralObject; a spline for generating dynamic roads.
Definition at line 15 of file ProceduralObjectClass.h.
Public Member Functions | |
| string | getName () |
| void | setName (const string &in name) |
| void | addPoint (procedural_point) |
| void | insertPoint (int pos, procedural_point) |
| void | deletePoint (int pos) |
| procedural_point | getPoint (int pos) |
| int | getNumPoints () |
| ProceduralRoadClass | getRoad () |
Data Fields | |
| int | smoothing_num_splits |
| bool | collision_enabled |
| string | custom_material_name |
| void Script2Game::ProceduralObjectClass::addPoint | ( | procedural_point | ) |
Adds point at the end.
| void Script2Game::ProceduralObjectClass::deletePoint | ( | int | pos | ) |
| string Script2Game::ProceduralObjectClass::getName | ( | ) |
Name of the road/street this spline represents.
| int Script2Game::ProceduralObjectClass::getNumPoints | ( | ) |
| procedural_point Script2Game::ProceduralObjectClass::getPoint | ( | int | pos | ) |
| ProceduralRoadClass Script2Game::ProceduralObjectClass::getRoad | ( | ) |
| void Script2Game::ProceduralObjectClass::insertPoint | ( | int | pos, |
| procedural_point | |||
| ) |
Adds point before the element at the specified position.
| void Script2Game::ProceduralObjectClass::setName | ( | const string &in | name | ) |
Name of the road/street this spline represents.
| bool Script2Game::ProceduralObjectClass::collision_enabled |
Property (read/write), default true: Disabling collisions makes loading map faster (useful for debugging).
Definition at line 27 of file ProceduralObjectClass.h.
| string Script2Game::ProceduralObjectClass::custom_material_name |
Property (read/write), default "": Set to empty string to use default material.
Definition at line 32 of file ProceduralObjectClass.h.
| int Script2Game::ProceduralObjectClass::smoothing_num_splits |
Property (read/write), default 0: Use 0 to disable smoothing.
Definition at line 22 of file ProceduralObjectClass.h.