15 #ifndef ODESURFACEPARAMETERS_H
16 #define ODESURFACEPARAMETERS_H
18 #include "pandabase.h"
19 #include "typedObject.h"
22 #include "ode_includes.h"
37 enum ModeFlags { MF_contact_mu2 = 0x001,
38 MF_contactFDir1 = 0x002,
39 MF_contactBounce = 0x004,
40 MF_contactSoftERP = 0x008,
41 MF_contactSoftCFM = 0x010,
42 MF_contactMotion1 = 0x020,
43 MF_contactMotion2 = 0x040,
44 MF_contactSlip1 = 0x080,
45 MF_contactSlip2 = 0x100,
47 MF_contactApprox0 = 0x0000,
48 MF_contactApprox1_1 = 0x1000,
49 MF_contactApprox1_2 = 0x2000,
50 MF_contactApprox1 = 0x3000 };
72 INLINE
void set_mode(
int mode);
73 INLINE
void set_mu(dReal mu);
74 INLINE
void set_mu2(dReal mu2);
75 INLINE
void set_bounce(dReal bounce);
76 INLINE
void set_bounce_vel(dReal bounce_vel);
77 INLINE
void set_soft_erp(dReal soft_erp);
78 INLINE
void set_soft_cfm(dReal soft_cfm);
79 INLINE
void set_motion1(dReal motion);
80 INLINE
void set_motion2(dReal motion);
81 INLINE
void set_slip1(dReal slip);
82 INLINE
void set_slip2(dReal slip);
84 INLINE
int get_mode()
const;
85 INLINE dReal get_mu()
const;
86 INLINE dReal get_mu2()
const;
87 INLINE dReal get_bounce()
const;
88 INLINE dReal get_bounce_vel()
const;
89 INLINE dReal get_soft_erp()
const;
90 INLINE dReal get_soft_cfm()
const;
91 INLINE dReal get_motion1()
const;
92 INLINE dReal get_motion2()
const;
93 INLINE dReal get_slip1()
const;
94 INLINE dReal get_slip2()
const;
97 const dSurfaceParameters *get_surface_parameters_ptr()
const;
101 dSurfaceParameters _surface_parameters;
109 register_type(_type_handle,
"OdeSurfaceParameters",
110 TypedObject::get_class_type());
113 return get_class_type();
121 #include "odeSurfaceParameters.I"
static void init_type()
This function is declared non-inline to work around a compiler bug in g++ 2.96.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
TypeHandle is the identifier used to differentiate C++ class types.