RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Attributes
RoR::FlexFactory Class Reference

#include <FlexFactory.h>

+ Collaboration diagram for RoR::FlexFactory:

Public Member Functions

 FlexFactory ()
 
 FlexFactory (ActorSpawner *spawner)
 
FlexBodyCreateFlexBody (RigDef::Flexbody *def, const int ref_node, const int x_node, const int y_node, Ogre::Quaternion const &rot, std::vector< unsigned int > &node_indices, std::string resource_group_name)
 
FlexMeshWheelCreateFlexMeshWheel (unsigned int wheel_index, int axis_node_1_index, int axis_node_2_index, int nstart, int nrays, float rim_radius, bool rim_reverse, std::string const &rim_mesh_name, std::string const &tire_material_name)
 
void CheckAndLoadFlexbodyCache ()
 
void SaveFlexbodiesToCache ()
 

Private Attributes

ActorSpawnerm_rig_spawner
 
FlexBodyFileIO m_flexbody_cache
 
bool m_is_flexbody_cache_enabled
 
bool m_is_flexbody_cache_loaded
 
unsigned int m_flexbody_cache_next_index
 

Detailed Description

Definition at line 163 of file FlexFactory.h.

Constructor & Destructor Documentation

◆ FlexFactory() [1/2]

RoR::FlexFactory::FlexFactory ( )
inline

Definition at line 166 of file FlexFactory.h.

◆ FlexFactory() [2/2]

FlexFactory::FlexFactory ( ActorSpawner spawner)

Definition at line 54 of file FlexFactory.cpp.

Member Function Documentation

◆ CheckAndLoadFlexbodyCache()

void FlexFactory::CheckAndLoadFlexbodyCache ( )

Definition at line 393 of file FlexFactory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateFlexBody()

FlexBody * FlexFactory::CreateFlexBody ( RigDef::Flexbody def,
const int  ref_node,
const int  x_node,
const int  y_node,
Ogre::Quaternion const &  rot,
std::vector< unsigned int > &  node_indices,
std::string  resource_group_name 
)

Definition at line 62 of file FlexFactory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateFlexMeshWheel()

FlexMeshWheel * FlexFactory::CreateFlexMeshWheel ( unsigned int  wheel_index,
int  axis_node_1_index,
int  axis_node_2_index,
int  nstart,
int  nrays,
float  rim_radius,
bool  rim_reverse,
std::string const &  rim_mesh_name,
std::string const &  tire_material_name 
)

Definition at line 106 of file FlexFactory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SaveFlexbodiesToCache()

void FlexFactory::SaveFlexbodiesToCache ( )

Definition at line 403 of file FlexFactory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ m_flexbody_cache

FlexBodyFileIO RoR::FlexFactory::m_flexbody_cache
private

Definition at line 197 of file FlexFactory.h.

◆ m_flexbody_cache_next_index

unsigned int RoR::FlexFactory::m_flexbody_cache_next_index
private

Definition at line 200 of file FlexFactory.h.

◆ m_is_flexbody_cache_enabled

bool RoR::FlexFactory::m_is_flexbody_cache_enabled
private

Definition at line 198 of file FlexFactory.h.

◆ m_is_flexbody_cache_loaded

bool RoR::FlexFactory::m_is_flexbody_cache_loaded
private

Definition at line 199 of file FlexFactory.h.

◆ m_rig_spawner

ActorSpawner* RoR::FlexFactory::m_rig_spawner
private

Definition at line 195 of file FlexFactory.h.


The documentation for this class was generated from the following files: