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

A mesh attached to vehicle frame via 3 nodes. More...

#include <GfxData.h>

+ Collaboration diagram for RoR::Prop:

Public Member Functions

void setPropMeshesVisible (bool visible)
 

Data Fields

PropID_t pp_id = PROPID_INVALID
 
NodeNum_t pp_node_ref = NODENUM_INVALID
 
NodeNum_t pp_node_x = NODENUM_INVALID
 
NodeNum_t pp_node_y = NODENUM_INVALID
 
Ogre::Vector3 pp_offset = Ogre::Vector3::ZERO
 
Ogre::Vector3 pp_offset_orig = Ogre::Vector3::ZERO
 Used with ANIM_FLAG_OFFSET*. More...
 
Ogre::Vector3 pp_rota = Ogre::Vector3::ZERO
 
Ogre::Quaternion pp_rot = Ogre::Quaternion::IDENTITY
 
Ogre::SceneNode * pp_scene_node = nullptr
 The pivot scene node (parented to root-node). More...
 
MeshObjectpp_mesh_obj = nullptr
 Optional; NULL if removed via tuneup/addonpart. More...
 
std::string pp_media [2]
 Redundant, for Tuning UI. Media1 = prop mesh name, Media2 = steeringwheel mesh/beaconprop flare mat. More...
 
std::vector< PropAnimpp_animations
 
int pp_camera_mode_active = CAMERA_MODE_ALWAYS_VISIBLE
 Dynamic visibility mode {0 and higher = cinecam index}. More...
 
int pp_camera_mode_orig = CAMERA_MODE_ALWAYS_VISIBLE
 Dynamic visibility mode {0 and higher = cinecam index}. More...
 
MeshObjectpp_wheel_mesh_obj = nullptr
 
Ogre::Vector3 pp_wheel_pos = Ogre::Vector3::ZERO
 
Ogre::SceneNode * pp_wheel_scene_node = nullptr
 
float pp_wheel_rot_degree = 0
 
char pp_beacon_type = 0
 Special prop: beacon {0 = none, 'b' = user-specified, 'r' = red, 'p' = police lightbar, 'L'/'R'/'w' - aircraft wings}. More...
 
Ogre::BillboardSet * pp_beacon_bbs [4] = {}
 
Ogre::SceneNode * pp_beacon_scene_node [4] = {}
 
Ogre::Light * pp_beacon_light [4] = {}
 
float pp_beacon_rot_rate [4] = {}
 Radians per second. More...
 
float pp_beacon_rot_angle [4] = {}
 Radians. More...
 
int pp_aero_engine_idx = -1
 Special - a turboprop/pistonprop reference. More...
 
bool pp_aero_propeller_blade = false
 Special - single blade mesh. More...
 
bool pp_aero_propeller_spin = false
 Special - blurred spinning propeller effect. More...
 

Detailed Description

A mesh attached to vehicle frame via 3 nodes.

Definition at line 159 of file GfxData.h.

Member Function Documentation

◆ setPropMeshesVisible()

void RoR::Prop::setPropMeshesVisible ( bool  visible)
inline

Definition at line 197 of file GfxData.h.

+ Here is the call graph for this function:

Field Documentation

◆ pp_aero_engine_idx

int RoR::Prop::pp_aero_engine_idx = -1

Special - a turboprop/pistonprop reference.

Definition at line 193 of file GfxData.h.

◆ pp_aero_propeller_blade

bool RoR::Prop::pp_aero_propeller_blade = false

Special - single blade mesh.

Definition at line 194 of file GfxData.h.

◆ pp_aero_propeller_spin

bool RoR::Prop::pp_aero_propeller_spin = false

Special - blurred spinning propeller effect.

Definition at line 195 of file GfxData.h.

◆ pp_animations

std::vector<PropAnim> RoR::Prop::pp_animations

Definition at line 172 of file GfxData.h.

◆ pp_beacon_bbs

Ogre::BillboardSet* RoR::Prop::pp_beacon_bbs[4] = {}

Definition at line 186 of file GfxData.h.

◆ pp_beacon_light

Ogre::Light* RoR::Prop::pp_beacon_light[4] = {}

Definition at line 188 of file GfxData.h.

◆ pp_beacon_rot_angle

float RoR::Prop::pp_beacon_rot_angle[4] = {}

Radians.

Definition at line 190 of file GfxData.h.

◆ pp_beacon_rot_rate

float RoR::Prop::pp_beacon_rot_rate[4] = {}

Radians per second.

Definition at line 189 of file GfxData.h.

◆ pp_beacon_scene_node

Ogre::SceneNode* RoR::Prop::pp_beacon_scene_node[4] = {}

Definition at line 187 of file GfxData.h.

◆ pp_beacon_type

char RoR::Prop::pp_beacon_type = 0

Special prop: beacon {0 = none, 'b' = user-specified, 'r' = red, 'p' = police lightbar, 'L'/'R'/'w' - aircraft wings}.

Definition at line 185 of file GfxData.h.

◆ pp_camera_mode_active

int RoR::Prop::pp_camera_mode_active = CAMERA_MODE_ALWAYS_VISIBLE

Dynamic visibility mode {0 and higher = cinecam index}.

Definition at line 175 of file GfxData.h.

◆ pp_camera_mode_orig

int RoR::Prop::pp_camera_mode_orig = CAMERA_MODE_ALWAYS_VISIBLE

Dynamic visibility mode {0 and higher = cinecam index}.

Definition at line 176 of file GfxData.h.

◆ pp_id

PropID_t RoR::Prop::pp_id = PROPID_INVALID

Definition at line 161 of file GfxData.h.

◆ pp_media

std::string RoR::Prop::pp_media[2]

Redundant, for Tuning UI. Media1 = prop mesh name, Media2 = steeringwheel mesh/beaconprop flare mat.

Definition at line 171 of file GfxData.h.

◆ pp_mesh_obj

MeshObject* RoR::Prop::pp_mesh_obj = nullptr

Optional; NULL if removed via tuneup/addonpart.

Definition at line 170 of file GfxData.h.

◆ pp_node_ref

NodeNum_t RoR::Prop::pp_node_ref = NODENUM_INVALID

Definition at line 162 of file GfxData.h.

◆ pp_node_x

NodeNum_t RoR::Prop::pp_node_x = NODENUM_INVALID

Definition at line 163 of file GfxData.h.

◆ pp_node_y

NodeNum_t RoR::Prop::pp_node_y = NODENUM_INVALID

Definition at line 164 of file GfxData.h.

◆ pp_offset

Ogre::Vector3 RoR::Prop::pp_offset = Ogre::Vector3::ZERO

Definition at line 165 of file GfxData.h.

◆ pp_offset_orig

Ogre::Vector3 RoR::Prop::pp_offset_orig = Ogre::Vector3::ZERO

Used with ANIM_FLAG_OFFSET*.

Definition at line 166 of file GfxData.h.

◆ pp_rot

Ogre::Quaternion RoR::Prop::pp_rot = Ogre::Quaternion::IDENTITY

Definition at line 168 of file GfxData.h.

◆ pp_rota

Ogre::Vector3 RoR::Prop::pp_rota = Ogre::Vector3::ZERO

Definition at line 167 of file GfxData.h.

◆ pp_scene_node

Ogre::SceneNode* RoR::Prop::pp_scene_node = nullptr

The pivot scene node (parented to root-node).

Definition at line 169 of file GfxData.h.

◆ pp_wheel_mesh_obj

MeshObject* RoR::Prop::pp_wheel_mesh_obj = nullptr

Definition at line 179 of file GfxData.h.

◆ pp_wheel_pos

Ogre::Vector3 RoR::Prop::pp_wheel_pos = Ogre::Vector3::ZERO

Definition at line 180 of file GfxData.h.

◆ pp_wheel_rot_degree

float RoR::Prop::pp_wheel_rot_degree = 0

Definition at line 182 of file GfxData.h.

◆ pp_wheel_scene_node

Ogre::SceneNode* RoR::Prop::pp_wheel_scene_node = nullptr

Definition at line 181 of file GfxData.h.


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