Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
Script2Game::ProceduralObjectClass Class Reference

Description

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
 

Member Function Documentation

◆ addPoint()

void Script2Game::ProceduralObjectClass::addPoint ( procedural_point  )

Adds point at the end.

◆ deletePoint()

void Script2Game::ProceduralObjectClass::deletePoint ( int  pos)

◆ getName()

string Script2Game::ProceduralObjectClass::getName ( )

Name of the road/street this spline represents.

◆ getNumPoints()

int Script2Game::ProceduralObjectClass::getNumPoints ( )

◆ getPoint()

procedural_point Script2Game::ProceduralObjectClass::getPoint ( int  pos)

◆ getRoad()

ProceduralRoadClass Script2Game::ProceduralObjectClass::getRoad ( )

◆ insertPoint()

void Script2Game::ProceduralObjectClass::insertPoint ( int  pos,
procedural_point   
)

Adds point before the element at the specified position.

◆ setName()

void Script2Game::ProceduralObjectClass::setName ( const string &in  name)

Name of the road/street this spline represents.

Field Documentation

◆ collision_enabled

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.

◆ custom_material_name

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.

◆ smoothing_num_splits

int Script2Game::ProceduralObjectClass::smoothing_num_splits

Property (read/write), default 0: Use 0 to disable smoothing.

Definition at line 22 of file ProceduralObjectClass.h.


The documentation for this class was generated from the following file: