![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Consists of static mesh, representing the rim, and dynamic mesh, representing the tire.
Definition at line 40 of file FlexMeshWheel.h.
Inheritance diagram for RoR::FlexMeshWheel:Data Structures | |
| struct | FlexMeshWheelVertex |
Public Member Functions | |
| ~FlexMeshWheel () | |
| Ogre::Entity * | GetTireEntity () |
| Ogre::Vector3 | updateVertices () |
| bool | flexitPrepare () |
| void | flexitCompute () |
| Ogre::Vector3 | flexitFinal () |
| void | setVisible (bool visible) |
Public Member Functions inherited from RoR::Flexable | |
| virtual | ~Flexable () |
Private Member Functions | |
| FlexMeshWheel (Ogre::Entity *rim_prop_entity, Ogre::SceneNode *rim_scene_node, RoR::GfxActor *gfx_actor, int axis_node_1_index, int axis_node_2_index, int nstart, int nrays, std::string const &tire_mesh_name, std::string const &tire_mesh_rg, std::string const &tire_material_name, std::string const &tire_material_rg, float rimradius, bool rimreverse) | |
Private Attributes | |
| size_t | m_num_rays |
| float | m_rim_radius |
| RoR::GfxActor * | m_gfx_actor |
| int | m_axis_node0_idx |
| int | m_axis_node1_idx |
| int | m_start_node_idx |
| Ogre::Vector3 | m_flexit_center |
| Ogre::MeshPtr | m_mesh |
| Ogre::SubMesh * | m_submesh |
| bool | m_is_rim_reverse |
| Ogre::Entity * | m_rim_entity |
| Ogre::Entity * | m_tire_entity |
| Ogre::SceneNode * | m_rim_scene_node |
| float | m_norm_y |
| size_t | m_vertex_count |
| std::vector< FlexMeshWheelVertex > | m_vertices |
| Ogre::VertexDeclaration * | m_vertex_format |
| Ogre::HardwareVertexBufferSharedPtr | m_hw_vbuf |
| size_t | m_index_count |
| std::vector< unsigned short > | m_indices |
Friends | |
| class | RoR::FlexFactory |
| FlexMeshWheel::~FlexMeshWheel | ( | ) |
Definition at line 168 of file FlexMeshWheel.cpp.
|
private |
Definition at line 34 of file FlexMeshWheel.cpp.
|
virtual |
Implements RoR::Flexable.
Definition at line 256 of file FlexMeshWheel.cpp.
|
virtual |
Implements RoR::Flexable.
Definition at line 261 of file FlexMeshWheel.cpp.
|
virtual |
Implements RoR::Flexable.
Definition at line 237 of file FlexMeshWheel.cpp.
|
inline |
Definition at line 48 of file FlexMeshWheel.h.
|
virtual |
Implements RoR::Flexable.
Definition at line 232 of file FlexMeshWheel.cpp.
| Vector3 FlexMeshWheel::updateVertices | ( | ) |
Definition at line 187 of file FlexMeshWheel.cpp.
|
friend |
Definition at line 42 of file FlexMeshWheel.h.
|
private |
Definition at line 88 of file FlexMeshWheel.h.
|
private |
Definition at line 89 of file FlexMeshWheel.h.
|
private |
Definition at line 93 of file FlexMeshWheel.h.
|
private |
Definition at line 87 of file FlexMeshWheel.h.
|
private |
Definition at line 106 of file FlexMeshWheel.h.
|
private |
Definition at line 109 of file FlexMeshWheel.h.
|
private |
Definition at line 110 of file FlexMeshWheel.h.
|
private |
Definition at line 96 of file FlexMeshWheel.h.
|
private |
Definition at line 94 of file FlexMeshWheel.h.
|
private |
Definition at line 102 of file FlexMeshWheel.h.
|
private |
Definition at line 85 of file FlexMeshWheel.h.
|
private |
Definition at line 97 of file FlexMeshWheel.h.
|
private |
Definition at line 86 of file FlexMeshWheel.h.
|
private |
Definition at line 99 of file FlexMeshWheel.h.
|
private |
First node (lowest index) belonging to this wheel.
Definition at line 90 of file FlexMeshWheel.h.
|
private |
Definition at line 95 of file FlexMeshWheel.h.
|
private |
Definition at line 98 of file FlexMeshWheel.h.
|
private |
Definition at line 103 of file FlexMeshWheel.h.
|
private |
Definition at line 105 of file FlexMeshWheel.h.
|
private |
Definition at line 104 of file FlexMeshWheel.h.