![]() |
RigsofRods
Soft-body Physics Simulation
|
Provides a 3D graphical representation of the simulation Idea: simulation runs at it's own constant rate, scene updates and rendering run asynchronously. More...
#include <GfxScene.h>
Static Public Member Functions | |
static Ogre::Quaternion | SpecialGetRotationTo (const Ogre::Vector3 &src, const Ogre::Vector3 &dest) |
Private Attributes | |
std::map< std::string, DustPool * > | m_dustpools |
Ogre::SceneManager * | m_scene_manager = nullptr |
std::vector< GfxActor * > | m_all_gfx_actors |
std::vector< GfxActor * > | m_live_gfx_actors |
std::vector< GfxCharacter * > | m_all_gfx_characters |
RoR::GfxEnvmap | m_envmap |
GameContextSB | m_simbuf |
SkidmarkConfig | m_skidmark_conf |
std::vector< FreeBeamGfx > | m_gfx_freebeams |
FreeBeamGfxID_t | m_gfx_freebeam_next_id = 0 |
Ogre::SceneNode * | m_gfx_freebeams_grouping_node = nullptr |
Only for nicer scenegraph when viewing through Inspector gadget. More... | |
Provides a 3D graphical representation of the simulation Idea: simulation runs at it's own constant rate, scene updates and rendering run asynchronously.
Definition at line 46 of file GfxScene.h.
void GfxScene::AddFreeBeamGfx | ( | FreeBeamGfxRequest * | rq | ) |
Definition at line 445 of file GfxScene.cpp.
void GfxScene::AdjustParticleSystemTimeFactor | ( | Ogre::ParticleSystem * | psys | ) |
Definition at line 434 of file GfxScene.cpp.
void GfxScene::BufferSimulationData | ( | ) |
Run this when simulation is halted.
Definition at line 294 of file GfxScene.cpp.
void GfxScene::ClearScene | ( | ) |
Definition at line 61 of file GfxScene.cpp.
void GfxScene::CreateDustPools | ( | ) |
void GfxScene::DrawNetLabel | ( | Ogre::Vector3 | pos, |
float | cam_dist, | ||
std::string const & | nick, | ||
int | colornum | ||
) |
Definition at line 373 of file GfxScene.cpp.
void GfxScene::ForceUpdateSingleGfxActor | ( | RoR::GfxActor * | gfx_actor | ) |
Definition at line 338 of file GfxScene.cpp.
DustPool * GfxScene::GetDustPool | ( | const char * | name | ) |
|
inline |
|
inline |
|
inline |
Definition at line 84 of file GfxScene.h.
|
inline |
Definition at line 85 of file GfxScene.h.
|
inline |
|
inline |
|
inline |
Definition at line 82 of file GfxScene.h.
void GfxScene::Init | ( | ) |
Definition at line 85 of file GfxScene.cpp.
void GfxScene::ModifyFreeBeamGfx | ( | FreeBeamGfxRequest * | rq | ) |
Definition at line 472 of file GfxScene.cpp.
void GfxScene::OnFreeForceBroken | ( | FreeForceID_t | id | ) |
void GfxScene::OnFreeForceRemoved | ( | FreeForceID_t | id | ) |
void GfxScene::RegisterGfxActor | ( | RoR::GfxActor * | gfx_actor | ) |
void GfxScene::RegisterGfxCharacter | ( | RoR::GfxCharacter * | gfx_character | ) |
void GfxScene::RemoveFreeBeamGfx | ( | FreeBeamGfxID_t | id | ) |
Definition at line 488 of file GfxScene.cpp.
void GfxScene::RemoveGfxActor | ( | RoR::GfxActor * | gfx_actor | ) |
void GfxScene::RemoveGfxCharacter | ( | RoR::GfxCharacter * | gfx_character | ) |
void GfxScene::SetParticlesVisible | ( | bool | visible | ) |
|
static |
Definition at line 580 of file GfxScene.cpp.
void GfxScene::UpdateFreeBeamGfx | ( | float | dt | ) |
void GfxScene::UpdateScene | ( | float | dt | ) |
Definition at line 94 of file GfxScene.cpp.
|
private |
Definition at line 93 of file GfxScene.h.
|
private |
Definition at line 95 of file GfxScene.h.
|
private |
Definition at line 91 of file GfxScene.h.
|
private |
Definition at line 96 of file GfxScene.h.
|
private |
Definition at line 102 of file GfxScene.h.
|
private |
Definition at line 101 of file GfxScene.h.
|
private |
Only for nicer scenegraph when viewing through Inspector gadget.
Definition at line 103 of file GfxScene.h.
|
private |
Definition at line 94 of file GfxScene.h.
|
private |
Definition at line 92 of file GfxScene.h.
|
private |
Definition at line 97 of file GfxScene.h.
|
private |
Definition at line 98 of file GfxScene.h.