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);
Central state/object manager and communications hub.
< Skidmark config file parser and data container
int ProcessSkidmarkConfLine(Ogre::StringVector args, Ogre::String model)
void LoadDefaultSkidmarkDefs()
std::map< Ogre::String, std::vector< SkidmarkDef > > m_models
int getTexture(Ogre::String model, Ogre::String ground, float slip, Ogre::String &texture)
Ogre::SceneNode * m_scene_node
void AddPoint(const Ogre::Vector3 &value, Ogre::Real fsize, Ogre::String texture)
std::queue< SkidmarkSegment > m_objects
void AddObject(Ogre::Vector3 start, Ogre::String texture)
static Ogre::Vector2 m_tex_coords[4]
void SetPointInt(unsigned short index, const Ogre::Vector3 &value, Ogre::Real fsize, Ogre::String texture)
static int m_instance_counter
SkidmarkConfig * m_config
void UpdatePoint(Ogre::Vector3 contact_point, int index, float slip, Ogre::String ground_model_name)
void update(Ogre::Vector3 contact_point, int index, float slip, Ogre::String ground_model_name)
< Also reffered to as 'bucket'
Ogre::Vector3 lastPointAv
std::vector< Ogre::String > groundTexture
Ogre::MaterialPtr material
std::vector< Ogre::Real > faceSizes
std::vector< Ogre::Vector3 > points
float slipTo
Maximum slipping velocity.
Ogre::String ground
Ground model name, see struct ground_model_t
float slipFrom
Minimum slipping velocity.