|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
25 #include <OgreMaterial.h>
26 #include <OgreString.h>
27 #include <OgreVector2.h>
28 #include <OgreVector3.h>
38 int getTexture(Ogre::String model, Ogre::String ground,
float slip, Ogre::String& texture);
52 std::map<Ogre::String, std::vector<SkidmarkDef>>
m_models;
67 void update(Ogre::Vector3 contact_point,
int index,
float slip, Ogre::String ground_model_name);
73 Ogre::ManualObject*
obj;
85 void AddObject(Ogre::Vector3 start, Ogre::String texture);
86 void SetPointInt(
unsigned short index,
const Ogre::Vector3& value, Ogre::Real fsize, Ogre::String texture);
87 void AddPoint(
const Ogre::Vector3& value, Ogre::Real fsize, Ogre::String texture);
88 void UpdatePoint(Ogre::Vector3 contact_point,
int index,
float slip, Ogre::String ground_model_name);
< Skidmark config file parser and data container
std::vector< Ogre::String > groundTexture
std::queue< SkidmarkSegment > m_objects
float slipFrom
Minimum slipping velocity.
float slipTo
Maximum slipping velocity.
int getTexture(Ogre::String model, Ogre::String ground, float slip, Ogre::String &texture)
void LoadDefaultSkidmarkDefs()
std::vector< Ogre::Vector3 > points
SkidmarkConfig * m_config
< Also reffered to as 'bucket'
Skidmark(SkidmarkConfig *config, wheel_t *m_wheel, Ogre::SceneNode *snode, int m_length=500, int m_bucket_count=20)
Constructor - see setOperationType() for description of argument.
void UpdatePoint(Ogre::Vector3 contact_point, int index, float slip, Ogre::String ground_model_name)
Central state/object manager and communications hub.
Ogre::MaterialPtr material
static int m_instance_counter
static Ogre::Vector2 m_tex_coords[4]
Ogre::Vector3 lastPointAv
void AddPoint(const Ogre::Vector3 &value, Ogre::Real fsize, Ogre::String texture)
void update(Ogre::Vector3 contact_point, int index, float slip, Ogre::String ground_model_name)
void AddObject(Ogre::Vector3 start, Ogre::String texture)
int ProcessSkidmarkConfLine(Ogre::StringVector args, Ogre::String model)
std::vector< Ogre::Real > faceSizes
Ogre::String ground
Ground model name, see struct ground_model_t
void SetPointInt(unsigned short index, const Ogre::Vector3 &value, Ogre::Real fsize, Ogre::String texture)
std::map< Ogre::String, std::vector< SkidmarkDef > > m_models
Ogre::SceneNode * m_scene_node