RigsofRods
Soft-body Physics Simulation
Public Member Functions | Data Fields
RoR::RailGroup Struct Reference

A series of RailSegment-s for SlideNode to slide along. Can be closed in a loop. More...

#include <SlideNode.h>

Public Member Functions

 RailGroup ()
 
RailSegmentFindClosestSegment (Ogre::Vector3 const &point)
 Search for closest rail segment (the one with closest node in it) in the entire RailGroup. More...
 

Data Fields

std::vector< RailSegmentrg_segments
 
int rg_id
 Spawn context - matching separately defined rails with slidenodes. More...
 

Detailed Description

A series of RailSegment-s for SlideNode to slide along. Can be closed in a loop.

Definition at line 53 of file SlideNode.h.

Constructor & Destructor Documentation

◆ RailGroup()

RoR::RailGroup::RailGroup ( )
inline

Definition at line 55 of file SlideNode.h.

Member Function Documentation

◆ FindClosestSegment()

RailSegment * RailGroup::FindClosestSegment ( Ogre::Vector3 const &  point)

Search for closest rail segment (the one with closest node in it) in the entire RailGroup.

Definition at line 114 of file SlideNode.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ rg_id

int RoR::RailGroup::rg_id

Spawn context - matching separately defined rails with slidenodes.

Definition at line 61 of file SlideNode.h.

◆ rg_segments

std::vector<RailSegment> RoR::RailGroup::rg_segments

Definition at line 60 of file SlideNode.h.


The documentation for this struct was generated from the following files: