RigsofRods
Soft-body Physics Simulation
|
#include <GfxActor.h>
Public Member Functions | |
GfxActor (ActorPtr actor, ActorSpawner *spawner, std::string ogre_resource_group, RoR::Renderdash *renderdash) | |
~GfxActor () | |
void | RegisterCabMaterial (Ogre::MaterialPtr mat, Ogre::MaterialPtr mat_trans) |
void | RegisterCabMesh (Ogre::Entity *ent, Ogre::SceneNode *snode, FlexObj *flexobj) |
void | SortFlexbodies () |
void | SetMaterialFlareOn (int flare_index, bool state_on) |
void | SetCabLightsActive (bool state_on) |
void | SetVideoCamState (VideoCamState state) |
void | ScaleActor (Ogre::Vector3 relpos, float ratio) |
void | ToggleDebugView () |
void | CycleDebugViews () |
void | ResetFlexbodies () |
void | SetRenderdashActive (bool active) |
void | SetBeaconsEnabled (bool beacon_light_is_active) |
void | SetDebugView (DebugViewType dv) |
void | SetNodeHot (NodeNum_t nodenum, bool value) |
void | RemoveBeam (int beam_index) |
void | SetRodsVisible (bool visible) |
void | SetFlexbodyVisible (bool visible) |
void | SetWheelsVisible (bool value) |
void | SetAllMeshesVisible (bool value) |
void | SetWingsVisible (bool visible) |
void | SetCastShadows (bool value) |
void | SetFlexbodiesVisible (bool visible) |
void | SetPropsVisible (bool visible) |
void | SetAeroEnginesVisible (bool visible) |
void | UpdateVideoCameras (float dt_sec) |
void | UpdateParticles (float dt_sec) |
void | UpdateRods () |
void | UpdateWheelVisuals () |
void | UpdateFlexbodies () |
void | UpdateDebugView () |
void | UpdateCabMesh () |
void | UpdateWingMeshes () |
void | UpdateBeaconFlare (Prop &prop, float dt, bool is_player_actor) |
void | UpdateProps (float dt, bool is_player_actor) |
void | UpdatePropAnimations (float dt) |
void | UpdateAirbrakes () |
void | UpdateCParticles () |
void | UpdateAeroEngines () |
void | UpdateNetLabels (float dt) |
void | UpdateFlares (float dt_sec, bool is_player) |
void | UpdateRenderdashRTT () |
void | UpdateSimDataBuffer () |
Copies sim. data from Actor to GfxActor for later update. More... | |
ActorSB & | GetSimDataBuffer () |
NodeSB * | GetSimNodeBuffer () |
void | FinishWheelUpdates () |
void | FinishFlexbodyTasks () |
bool | IsActorLive () const |
Should the visuals be updated for this actor? More... | |
void | CalculateDriverPos (Ogre::Vector3 &out_pos, Ogre::Quaternion &out_rot) |
int | GetActorId () const |
int | GetActorState () const |
std::vector< FlexBody * > & | GetFlexbodies () |
Ogre::MaterialPtr & | GetCabTransMaterial () |
VideoCamState | GetVideoCamState () const |
DebugViewType | GetDebugView () const |
Ogre::String | GetResourceGroup () |
ActorPtr | GetActor () |
Ogre::TexturePtr | GetHelpTex () |
Ogre::MaterialPtr | GetHelpMat () |
bool | HasDriverSeatProp () const |
void | CalcPropAnimation (PropAnim &anim, float &cstate, int &div, float dt) |
std::vector< Prop > & | getProps () |
size_t | getNumVideoCameras () const |
SurveyMapEntity & | getSurveyMapEntity () |
WheelSide | getWheelSide (WheelID_t wheel_id) |
std::string | getWheelRimMeshName (WheelID_t wheel_id) |
const ActorPtr & | getOwningActor () |
int | countBeaconProps () const |
Private Member Functions | |
float | UpdateSmoothShift (PropAnim &anim, float dt, float new_target_cstate) |
Static Private Member Functions | |
static Ogre::Quaternion | SpecialGetRotationTo (const Ogre::Vector3 &src, const Ogre::Vector3 &dest) |
Friends | |
class | ActorSpawner |
Definition at line 52 of file GfxActor.h.
RoR::GfxActor::GfxActor | ( | ActorPtr | actor, |
ActorSpawner * | spawner, | ||
std::string | ogre_resource_group, | ||
RoR::Renderdash * | renderdash | ||
) |
RoR::GfxActor::~GfxActor | ( | ) |
void RoR::GfxActor::CalcPropAnimation | ( | PropAnim & | anim, |
float & | cstate, | ||
int & | div, | ||
float | dt | ||
) |
Definition at line 2430 of file GfxActor.cpp.
void RoR::GfxActor::CalculateDriverPos | ( | Ogre::Vector3 & | out_pos, |
Ogre::Quaternion & | out_rot | ||
) |
Definition at line 2034 of file GfxActor.cpp.
int RoR::GfxActor::countBeaconProps | ( | ) | const |
void RoR::GfxActor::CycleDebugViews | ( | ) |
void RoR::GfxActor::FinishFlexbodyTasks | ( | ) |
void RoR::GfxActor::FinishWheelUpdates | ( | ) |
ActorPtr RoR::GfxActor::GetActor | ( | ) |
int RoR::GfxActor::GetActorId | ( | ) | const |
int RoR::GfxActor::GetActorState | ( | ) | const |
Definition at line 1959 of file GfxActor.cpp.
|
inline |
Definition at line 136 of file GfxActor.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 147 of file GfxActor.h.
|
inline |
|
inline |
|
inline |
bool RoR::GfxActor::IsActorLive | ( | ) | const |
Should the visuals be updated for this actor?
Definition at line 1896 of file GfxActor.cpp.
void RoR::GfxActor::RegisterCabMaterial | ( | Ogre::MaterialPtr | mat, |
Ogre::MaterialPtr | mat_trans | ||
) |
Definition at line 357 of file GfxActor.cpp.
void RoR::GfxActor::RegisterCabMesh | ( | Ogre::Entity * | ent, |
Ogre::SceneNode * | snode, | ||
FlexObj * | flexobj | ||
) |
void RoR::GfxActor::RemoveBeam | ( | int | beam_index | ) |
void RoR::GfxActor::ResetFlexbodies | ( | ) |
Definition at line 3138 of file GfxActor.cpp.
void RoR::GfxActor::ScaleActor | ( | Ogre::Vector3 | relpos, |
float | ratio | ||
) |
Definition at line 1665 of file GfxActor.cpp.
void RoR::GfxActor::SetAeroEnginesVisible | ( | bool | visible | ) |
Definition at line 2310 of file GfxActor.cpp.
void RoR::GfxActor::SetAllMeshesVisible | ( | bool | value | ) |
void RoR::GfxActor::SetBeaconsEnabled | ( | bool | beacon_light_is_active | ) |
void RoR::GfxActor::SetCabLightsActive | ( | bool | state_on | ) |
Definition at line 373 of file GfxActor.cpp.
void RoR::GfxActor::SetCastShadows | ( | bool | value | ) |
void RoR::GfxActor::SetDebugView | ( | DebugViewType | dv | ) |
void RoR::GfxActor::SetFlexbodiesVisible | ( | bool | visible | ) |
void RoR::GfxActor::SetFlexbodyVisible | ( | bool | visible | ) |
Definition at line 3146 of file GfxActor.cpp.
void RoR::GfxActor::SetMaterialFlareOn | ( | int | flare_index, |
bool | state_on | ||
) |
Definition at line 293 of file GfxActor.cpp.
void RoR::GfxActor::SetNodeHot | ( | NodeNum_t | nodenum, |
bool | value | ||
) |
Definition at line 3350 of file GfxActor.cpp.
void RoR::GfxActor::SetPropsVisible | ( | bool | visible | ) |
Definition at line 2302 of file GfxActor.cpp.
void RoR::GfxActor::SetRenderdashActive | ( | bool | active | ) |
void RoR::GfxActor::SetRodsVisible | ( | bool | visible | ) |
Definition at line 1706 of file GfxActor.cpp.
void RoR::GfxActor::SetVideoCamState | ( | VideoCamState | state | ) |
void RoR::GfxActor::SetWheelsVisible | ( | bool | value | ) |
Definition at line 1942 of file GfxActor.cpp.
void RoR::GfxActor::SetWingsVisible | ( | bool | visible | ) |
Definition at line 3314 of file GfxActor.cpp.
void RoR::GfxActor::SortFlexbodies | ( | ) |
|
staticprivate |
Definition at line 1621 of file GfxActor.cpp.
void RoR::GfxActor::ToggleDebugView | ( | ) |
void RoR::GfxActor::UpdateAeroEngines | ( | ) |
Definition at line 2006 of file GfxActor.cpp.
void RoR::GfxActor::UpdateAirbrakes | ( | ) |
Definition at line 1961 of file GfxActor.cpp.
void RoR::GfxActor::UpdateBeaconFlare | ( | Prop & | prop, |
float | dt, | ||
bool | is_player_actor | ||
) |
void RoR::GfxActor::UpdateCabMesh | ( | ) |
void RoR::GfxActor::UpdateCParticles | ( | ) |
void RoR::GfxActor::UpdateDebugView | ( | ) |
void RoR::GfxActor::UpdateFlares | ( | float | dt_sec, |
bool | is_player | ||
) |
void RoR::GfxActor::UpdateFlexbodies | ( | ) |
Definition at line 3115 of file GfxActor.cpp.
void RoR::GfxActor::UpdateNetLabels | ( | float | dt | ) |
void RoR::GfxActor::UpdateParticles | ( | float | dt_sec | ) |
void RoR::GfxActor::UpdatePropAnimations | ( | float | dt | ) |
Definition at line 2895 of file GfxActor.cpp.
void RoR::GfxActor::UpdateProps | ( | float | dt, |
bool | is_player_actor | ||
) |
void RoR::GfxActor::UpdateRenderdashRTT | ( | ) |
Definition at line 2329 of file GfxActor.cpp.
void RoR::GfxActor::UpdateRods | ( | ) |
Definition at line 1598 of file GfxActor.cpp.
void RoR::GfxActor::UpdateSimDataBuffer | ( | ) |
Copies sim. data from Actor
to GfxActor
for later update.
Definition at line 1727 of file GfxActor.cpp.
|
private |
Definition at line 2406 of file GfxActor.cpp.
void RoR::GfxActor::UpdateVideoCameras | ( | float | dt_sec | ) |
Definition at line 422 of file GfxActor.cpp.
void RoR::GfxActor::UpdateWheelVisuals | ( | ) |
Definition at line 1909 of file GfxActor.cpp.
void RoR::GfxActor::UpdateWingMeshes | ( | ) |
Definition at line 3327 of file GfxActor.cpp.
|
friend |
Definition at line 54 of file GfxActor.h.
|
private |
Definition at line 159 of file GfxActor.h.
|
private |
Definition at line 169 of file GfxActor.h.
|
private |
Definition at line 200 of file GfxActor.h.
|
private |
Definition at line 204 of file GfxActor.h.
|
private |
Definition at line 203 of file GfxActor.h.
|
private |
Updated in-place from templates.
Definition at line 201 of file GfxActor.h.
|
private |
Definition at line 202 of file GfxActor.h.
|
private |
Definition at line 198 of file GfxActor.h.
|
private |
Definition at line 199 of file GfxActor.h.
|
private |
Definition at line 160 of file GfxActor.h.
|
private |
Definition at line 167 of file GfxActor.h.
|
private |
Definition at line 161 of file GfxActor.h.
|
private |
Definition at line 186 of file GfxActor.h.
|
private |
Definition at line 183 of file GfxActor.h.
|
private |
Definition at line 176 of file GfxActor.h.
|
private |
Definition at line 175 of file GfxActor.h.
|
private |
Definition at line 181 of file GfxActor.h.
|
private |
Definition at line 180 of file GfxActor.h.
|
private |
Definition at line 162 of file GfxActor.h.
|
private |
Definition at line 179 of file GfxActor.h.
|
private |
Definition at line 207 of file GfxActor.h.
|
private |
Definition at line 208 of file GfxActor.h.
|
private |
Definition at line 165 of file GfxActor.h.
|
private |
Definition at line 168 of file GfxActor.h.
|
private |
Definition at line 195 of file GfxActor.h.
|
private |
Definition at line 190 of file GfxActor.h.
|
private |
Definition at line 191 of file GfxActor.h.
|
private |
Definition at line 193 of file GfxActor.h.
|
private |
Definition at line 194 of file GfxActor.h.
|
private |
Definition at line 192 of file GfxActor.h.
|
private |
Definition at line 170 of file GfxActor.h.
|
private |
Definition at line 172 of file GfxActor.h.
|
private |
Definition at line 171 of file GfxActor.h.
|
private |
Definition at line 182 of file GfxActor.h.
|
private |
Definition at line 187 of file GfxActor.h.
|
private |
Definition at line 211 of file GfxActor.h.
|
private |
Definition at line 209 of file GfxActor.h.
|
private |
Definition at line 166 of file GfxActor.h.
|
private |
Definition at line 185 of file GfxActor.h.
|
private |
Definition at line 184 of file GfxActor.h.