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

Physics: A vertex in the softbody structure. More...

#include <SimData.h>

+ Collaboration diagram for RoR::node_t:

Public Member Functions

 node_t ()
 
 node_t (size_t _pos)
 

Data Fields

Ogre::Vector3 RelPosition
 relative to the local physics origin (one origin per actor) (shaky) More...
 
Ogre::Vector3 AbsPosition
 absolute position in the world (shaky) More...
 
Ogre::Vector3 Velocity
 
Ogre::Vector3 Forces
 
Ogre::Real mass
 
Ogre::Real buoyancy
 
Ogre::Real friction_coef
 
Ogre::Real surface_coef
 
Ogre::Real volume_coef
 
NodeNum_t pos
 This node's index in Actor::ar_nodes array. More...
 
int16_t nd_coll_bbox_id
 Optional attribute (-1 = none) - multiple collision bounding boxes defined in truckfile. More...
 
int16_t nd_lockgroup
 Optional attribute (-1 = default, 9999 = deny lock) - used in the hook lock logic. More...
 
bool nd_cab_node:1
 Attr; This node is part of collision triangle. More...
 
bool nd_rim_node:1
 Attr; This node is part of a rim. More...
 
bool nd_tyre_node:1
 Attr; This node is part of a tyre. More...
 
bool nd_contacter:1
 Attr; User-defined. More...
 
bool nd_contactable:1
 Attr; This node will be treated as contacter on inter truck collisions. More...
 
bool nd_has_ground_contact:1
 Physics state. More...
 
bool nd_has_mesh_contact:1
 Physics state. More...
 
bool nd_immovable:1
 Attr; User-defined. More...
 
bool nd_loaded_mass:1
 User defined attr; mass is calculated from 'globals/loaded-mass' rather than 'globals/dry-mass'. More...
 
bool nd_no_ground_contact:1
 User-defined attr; node ignores contact with ground. More...
 
bool nd_override_mass:1
 User defined attr; mass is user-specified rather than calculated (override the calculation) More...
 
bool nd_under_water:1
 State; GFX hint. More...
 
bool nd_no_mouse_grab:1
 Attr; User-defined. More...
 
Ogre::Real nd_avg_collision_slip
 Physics state; average slip velocity across the last few physics frames. More...
 
Ogre::Vector3 nd_last_collision_slip
 Physics state; last collision slip vector. More...
 
Ogre::Vector3 nd_last_collision_force
 Physics state; last collision force. More...
 
ground_model_tnd_last_collision_gm
 Physics state; last collision 'ground model' (surface definition) More...
 

Static Public Attributes

static const int8_t INVALID_BBOX = -1
 

Detailed Description

Physics: A vertex in the softbody structure.

Definition at line 297 of file SimData.h.

Constructor & Destructor Documentation

◆ node_t() [1/2]

RoR::node_t::node_t ( )
inline

Definition at line 301 of file SimData.h.

◆ node_t() [2/2]

RoR::node_t::node_t ( size_t  _pos)
inline

Definition at line 302 of file SimData.h.

Field Documentation

◆ AbsPosition

Ogre::Vector3 RoR::node_t::AbsPosition

absolute position in the world (shaky)

Definition at line 305 of file SimData.h.

◆ buoyancy

Ogre::Real RoR::node_t::buoyancy

Definition at line 310 of file SimData.h.

◆ Forces

Ogre::Vector3 RoR::node_t::Forces

Definition at line 307 of file SimData.h.

◆ friction_coef

Ogre::Real RoR::node_t::friction_coef

Definition at line 311 of file SimData.h.

◆ INVALID_BBOX

const int8_t RoR::node_t::INVALID_BBOX = -1
static

Definition at line 299 of file SimData.h.

◆ mass

Ogre::Real RoR::node_t::mass

Definition at line 309 of file SimData.h.

◆ nd_avg_collision_slip

Ogre::Real RoR::node_t::nd_avg_collision_slip

Physics state; average slip velocity across the last few physics frames.

Definition at line 334 of file SimData.h.

◆ nd_cab_node

bool RoR::node_t::nd_cab_node

Attr; This node is part of collision triangle.

Definition at line 320 of file SimData.h.

◆ nd_coll_bbox_id

int16_t RoR::node_t::nd_coll_bbox_id

Optional attribute (-1 = none) - multiple collision bounding boxes defined in truckfile.

Definition at line 316 of file SimData.h.

◆ nd_contactable

bool RoR::node_t::nd_contactable

Attr; This node will be treated as contacter on inter truck collisions.

Definition at line 324 of file SimData.h.

◆ nd_contacter

bool RoR::node_t::nd_contacter

Attr; User-defined.

Definition at line 323 of file SimData.h.

◆ nd_has_ground_contact

bool RoR::node_t::nd_has_ground_contact

Physics state.

Definition at line 325 of file SimData.h.

◆ nd_has_mesh_contact

bool RoR::node_t::nd_has_mesh_contact

Physics state.

Definition at line 326 of file SimData.h.

◆ nd_immovable

bool RoR::node_t::nd_immovable

Attr; User-defined.

Definition at line 327 of file SimData.h.

◆ nd_last_collision_force

Ogre::Vector3 RoR::node_t::nd_last_collision_force

Physics state; last collision force.

Definition at line 336 of file SimData.h.

◆ nd_last_collision_gm

ground_model_t* RoR::node_t::nd_last_collision_gm

Physics state; last collision 'ground model' (surface definition)

Definition at line 337 of file SimData.h.

◆ nd_last_collision_slip

Ogre::Vector3 RoR::node_t::nd_last_collision_slip

Physics state; last collision slip vector.

Definition at line 335 of file SimData.h.

◆ nd_loaded_mass

bool RoR::node_t::nd_loaded_mass

User defined attr; mass is calculated from 'globals/loaded-mass' rather than 'globals/dry-mass'.

Definition at line 328 of file SimData.h.

◆ nd_lockgroup

int16_t RoR::node_t::nd_lockgroup

Optional attribute (-1 = default, 9999 = deny lock) - used in the hook lock logic.

Definition at line 317 of file SimData.h.

◆ nd_no_ground_contact

bool RoR::node_t::nd_no_ground_contact

User-defined attr; node ignores contact with ground.

Definition at line 329 of file SimData.h.

◆ nd_no_mouse_grab

bool RoR::node_t::nd_no_mouse_grab

Attr; User-defined.

Definition at line 332 of file SimData.h.

◆ nd_override_mass

bool RoR::node_t::nd_override_mass

User defined attr; mass is user-specified rather than calculated (override the calculation)

Definition at line 330 of file SimData.h.

◆ nd_rim_node

bool RoR::node_t::nd_rim_node

Attr; This node is part of a rim.

Definition at line 321 of file SimData.h.

◆ nd_tyre_node

bool RoR::node_t::nd_tyre_node

Attr; This node is part of a tyre.

Definition at line 322 of file SimData.h.

◆ nd_under_water

bool RoR::node_t::nd_under_water

State; GFX hint.

Definition at line 331 of file SimData.h.

◆ pos

NodeNum_t RoR::node_t::pos

This node's index in Actor::ar_nodes array.

Definition at line 315 of file SimData.h.

◆ RelPosition

Ogre::Vector3 RoR::node_t::RelPosition

relative to the local physics origin (one origin per actor) (shaky)

Definition at line 304 of file SimData.h.

◆ surface_coef

Ogre::Real RoR::node_t::surface_coef

Definition at line 312 of file SimData.h.

◆ Velocity

Ogre::Vector3 RoR::node_t::Velocity

Definition at line 306 of file SimData.h.

◆ volume_coef

Ogre::Real RoR::node_t::volume_coef

Definition at line 313 of file SimData.h.


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