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 (FlexbodyID_t flexbody_id, const NodeNum_t ref_node, const NodeNum_t x_node, const NodeNum_t y_node, Ogre::Vector3 offset, Ogre::Vector3 rotation, std::vector< unsigned int > &node_indices, const std::string &mesh_name, const 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 &rim_mesh_rg, std::string const &tire_material_name, std::string const &tire_material_rg)
 
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 55 of file FlexFactory.cpp.

Member Function Documentation

◆ CheckAndLoadFlexbodyCache()

void FlexFactory::CheckAndLoadFlexbodyCache ( )

Definition at line 407 of file FlexFactory.cpp.

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

◆ CreateFlexBody()

FlexBody * FlexFactory::CreateFlexBody ( FlexbodyID_t  flexbody_id,
const NodeNum_t  ref_node,
const NodeNum_t  x_node,
const NodeNum_t  y_node,
Ogre::Vector3  offset,
Ogre::Vector3  rotation,
std::vector< unsigned int > &  node_indices,
const std::string &  mesh_name,
const std::string &  resource_group_name 
)

Definition at line 63 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 &  rim_mesh_rg,
std::string const &  tire_material_name,
std::string const &  tire_material_rg 
)

Definition at line 114 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 417 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 201 of file FlexFactory.h.

◆ m_flexbody_cache_next_index

unsigned int RoR::FlexFactory::m_flexbody_cache_next_index
private

Definition at line 204 of file FlexFactory.h.

◆ m_is_flexbody_cache_enabled

bool RoR::FlexFactory::m_is_flexbody_cache_enabled
private

Definition at line 202 of file FlexFactory.h.

◆ m_is_flexbody_cache_loaded

bool RoR::FlexFactory::m_is_flexbody_cache_loaded
private

Definition at line 203 of file FlexFactory.h.

◆ m_rig_spawner

ActorSpawner* RoR::FlexFactory::m_rig_spawner
private

Definition at line 199 of file FlexFactory.h.


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