48 #include<ode-dbl/common.h>
49 #include<ode-dbl/contact.h>
74 dContact* contacts,
int numContacts,
150 void toFoam(
float _hardness);
187 dContact* contacts,
int numContacts,
void * userdata
Definition: substance.h:118
void toNoContact()
set the collsion callback to ignores everything Usually it is better to use the "ignorePairs" from od...
Definition: substance.cpp:209
Physical substance definition, used for collision detection/treatment What we need is mu...
Definition: substance.h:103
static Substance getDefaultSubstance()
default substance is plastic with roughness=0.8
Definition: substance.cpp:95
void toMetal(float roughness)
very hard and elastic with slip roughness [0.1-1]
Definition: substance.cpp:112
static int dbg_output(dSurfaceParameters ¶ms, GlobalData &globaldata, void *userdata, dContact *contacts, int numContacts, dGeomID o1, dGeomID o2, const Substance &s1, const Substance &s2)
Definition: substance.cpp:281
void toPlastic(float roughness)
medium slip, a bit elastic, medium hardness, roughness [0.5-2]
Definition: substance.cpp:147
Substance()
Definition: substance.cpp:36
float hardness
Definition: substance.h:112
static Substance getPlastic(float roughness)
medium slip, a bit elastic, medium hardness, roughness [0.5-2]
Definition: substance.cpp:139
void toRubber(float hardness)
high roughness, no slip, very elastic, hardness : [5-50]
Definition: substance.cpp:129
Definition: substance.h:181
float slip
Definition: substance.h:111
static Substance getMetal(float roughness)
very hard and elastic with slip roughness [0.1-1]
Definition: substance.cpp:106
Data structure holding all essential global information.
Definition: globaldata.h:57
DebugSubstance()
Definition: substance.cpp:270
static Substance getSnow(float _slip)
variable slip and roughness [0-1], not elastic, high hardness for solid snow slip = 1 <–> roughness=0...
Definition: substance.cpp:176
int(* CollisionCallback)(dSurfaceParameters ¶ms, GlobalData &globaldata, void *userdata, dContact *contacts, int numContacts, dGeomID o1, dGeomID o2, const Substance &s1, const Substance &s2)
function to be called at a collision event between the two geoms.
Definition: substance.h:73
static Substance getNoContact()
Definition: substance.cpp:195
void toFoam(float _hardness)
large slip, not elastic, low hardness [1-30], high roughness
Definition: substance.cpp:165
void toDefaultSubstance()
Definition: substance.cpp:101
static Substance getFoam(float _hardness)
large slip, not elastic, low hardness [1-30], high roughness
Definition: substance.cpp:157
CollisionCallback callback
Definition: substance.h:117
void toSnow(float _slip)
variable slip and roughness, not elastic, high hardness for solid snow slip = 1 <–> roughness=0...
Definition: substance.cpp:185
void toAnisotropFriction(double ratio, const Axis &axis)
enables anisotrop friction.
Definition: substance.cpp:259
static void printSurfaceParams(const dSurfaceParameters &surfParams)
Definition: substance.cpp:86
float elasticity
Definition: substance.h:113
static void getSurfaceParams(dSurfaceParameters &sp, const Substance &s1, const Substance &s2, double stepsize)
Combination of two surfaces.
Definition: substance.cpp:54
void setCollisionCallback(CollisionCallback func, void *userdata)
Definition: substance.cpp:48
static Substance getRubber(float hardness)
high roughness, no slip, very elastic, hardness : [5-50]
Definition: substance.cpp:122
float roughness
Definition: substance.h:110