RigsofRods
Soft-body Physics Simulation
Public Types | Data Fields
RoR::wheel_t Struct Reference

#include <SimData.h>

+ Collaboration diagram for RoR::wheel_t:

Public Types

enum  BrakeCombo {
  BrakeCombo::NONE, BrakeCombo::FOOT_HAND, BrakeCombo::FOOT_HAND_SKID_LEFT, BrakeCombo::FOOT_HAND_SKID_RIGHT,
  BrakeCombo::FOOT_ONLY
}
 Wheels are braked by three mechanisms: A footbrake, a handbrake/parkingbrake, and directional brakes used for skidsteer steering. More...
 

Data Fields

int wh_num_nodes
 
node_twh_nodes [50]
 
int wh_num_rim_nodes
 
node_twh_rim_nodes [50]
 
BrakeCombo wh_braking
 
node_twh_arm_node
 
node_twh_near_attach_node
 
node_twh_axis_node_0
 
node_twh_axis_node_1
 
int wh_propulsed
 
Ogre::Real wh_radius
 
Ogre::Real wh_rim_radius
 
Ogre::Real wh_speed
 Current wheel speed in m/s. More...
 
Ogre::Real wh_avg_speed
 Internal physics state; Do not read from this. More...
 
Ogre::Real wh_alb_coef
 Sim state; Current anti-lock brake modulation ratio. More...
 
Ogre::Real wh_tc_coef
 Sim state; Current traction control modulation ratio. More...
 
Ogre::Real wh_mass
 Total rotational mass of the wheel. More...
 
Ogre::Real wh_torque
 Internal physics state; Do not read from this. More...
 
Ogre::Real wh_last_torque
 Last internal forces (engine / brakes / diffs) More...
 
Ogre::Real wh_last_retorque
 Last external forces (friction, ...) More...
 
float wh_net_rp
 
float wh_width
 
bool wh_is_detached
 
float debug_rpm
 
float debug_torque
 
Ogre::Vector3 debug_vel
 
Ogre::Vector3 debug_slip
 
Ogre::Vector3 debug_force
 
Ogre::Vector3 debug_scaled_cforce
 

Detailed Description

Definition at line 432 of file SimData.h.

Member Enumeration Documentation

◆ BrakeCombo

Wheels are braked by three mechanisms: A footbrake, a handbrake/parkingbrake, and directional brakes used for skidsteer steering.

Enumerator
NONE 
  • 0 = no footbrake, no handbrake, no direction control – wheel is unbraked
FOOT_HAND 
  • 1 = yes footbrake, yes handbrake, no direction control
FOOT_HAND_SKID_LEFT 
  • 2 = yes footbrake, yes handbrake, yes direction control (braked when vehicle steers to the left)
FOOT_HAND_SKID_RIGHT 
  • 3 = yes footbrake, yes handbrake, yes direction control (braked when vehicle steers to the right)
FOOT_ONLY 
  • 4 = yes footbrake, no handbrake, no direction control – footbrake only, such as with the front wheels of a passenger car

Definition at line 434 of file SimData.h.

Field Documentation

◆ debug_force

Ogre::Vector3 RoR::wheel_t::debug_force

Definition at line 472 of file SimData.h.

◆ debug_rpm

float RoR::wheel_t::debug_rpm

Definition at line 468 of file SimData.h.

◆ debug_scaled_cforce

Ogre::Vector3 RoR::wheel_t::debug_scaled_cforce

Definition at line 473 of file SimData.h.

◆ debug_slip

Ogre::Vector3 RoR::wheel_t::debug_slip

Definition at line 471 of file SimData.h.

◆ debug_torque

float RoR::wheel_t::debug_torque

Definition at line 469 of file SimData.h.

◆ debug_vel

Ogre::Vector3 RoR::wheel_t::debug_vel

Definition at line 470 of file SimData.h.

◆ wh_alb_coef

Ogre::Real RoR::wheel_t::wh_alb_coef

Sim state; Current anti-lock brake modulation ratio.

Definition at line 457 of file SimData.h.

◆ wh_arm_node

node_t* RoR::wheel_t::wh_arm_node

Definition at line 448 of file SimData.h.

◆ wh_avg_speed

Ogre::Real RoR::wheel_t::wh_avg_speed

Internal physics state; Do not read from this.

Definition at line 456 of file SimData.h.

◆ wh_axis_node_0

node_t* RoR::wheel_t::wh_axis_node_0

Definition at line 450 of file SimData.h.

◆ wh_axis_node_1

node_t* RoR::wheel_t::wh_axis_node_1

Definition at line 451 of file SimData.h.

◆ wh_braking

BrakeCombo RoR::wheel_t::wh_braking

Definition at line 447 of file SimData.h.

◆ wh_is_detached

bool RoR::wheel_t::wh_is_detached

Definition at line 465 of file SimData.h.

◆ wh_last_retorque

Ogre::Real RoR::wheel_t::wh_last_retorque

Last external forces (friction, ...)

Definition at line 462 of file SimData.h.

◆ wh_last_torque

Ogre::Real RoR::wheel_t::wh_last_torque

Last internal forces (engine / brakes / diffs)

Definition at line 461 of file SimData.h.

◆ wh_mass

Ogre::Real RoR::wheel_t::wh_mass

Total rotational mass of the wheel.

Definition at line 459 of file SimData.h.

◆ wh_near_attach_node

node_t* RoR::wheel_t::wh_near_attach_node

Definition at line 449 of file SimData.h.

◆ wh_net_rp

float RoR::wheel_t::wh_net_rp

Definition at line 463 of file SimData.h.

◆ wh_nodes

node_t* RoR::wheel_t::wh_nodes[50]

Definition at line 444 of file SimData.h.

◆ wh_num_nodes

int RoR::wheel_t::wh_num_nodes

Definition at line 443 of file SimData.h.

◆ wh_num_rim_nodes

int RoR::wheel_t::wh_num_rim_nodes

Definition at line 445 of file SimData.h.

◆ wh_propulsed

int RoR::wheel_t::wh_propulsed

Definition at line 452 of file SimData.h.

◆ wh_radius

Ogre::Real RoR::wheel_t::wh_radius

Definition at line 453 of file SimData.h.

◆ wh_rim_nodes

node_t* RoR::wheel_t::wh_rim_nodes[50]

Definition at line 446 of file SimData.h.

◆ wh_rim_radius

Ogre::Real RoR::wheel_t::wh_rim_radius

Definition at line 454 of file SimData.h.

◆ wh_speed

Ogre::Real RoR::wheel_t::wh_speed

Current wheel speed in m/s.

Definition at line 455 of file SimData.h.

◆ wh_tc_coef

Ogre::Real RoR::wheel_t::wh_tc_coef

Sim state; Current traction control modulation ratio.

Definition at line 458 of file SimData.h.

◆ wh_torque

Ogre::Real RoR::wheel_t::wh_torque

Internal physics state; Do not read from this.

Definition at line 460 of file SimData.h.

◆ wh_width

float RoR::wheel_t::wh_width

Definition at line 464 of file SimData.h.


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