18 #include "pandabase.h"
19 #include "typedObject.h"
21 #include "ode_includes.h"
23 #include "numeric_types.h"
25 #include "ode_includes.h"
26 #include "odeHelperStructs.h"
41 INLINE
bool is_empty()
const;
42 INLINE dWorldID get_id()
const;
44 INLINE
void set_gravity(dReal x, dReal y, dReal z);
45 INLINE
void set_gravity(
const LVecBase3f &vec);
46 INLINE
void set_erp(dReal erp);
47 INLINE
void set_cfm(dReal cfm);
48 INLINE
void set_quick_step_num_iterations(
int num);
50 INLINE
void set_quick_step_w(dReal over_relaxation);
51 INLINE
void set_contact_max_correcting_vel(dReal vel);
52 INLINE
void set_contact_surface_layer(dReal depth);
53 INLINE
void set_auto_disable_linear_threshold(dReal linear_threshold);
54 INLINE
void set_auto_disable_angular_threshold(dReal angular_threshold);
55 INLINE
void set_auto_disable_steps(
int steps);
56 INLINE
void set_auto_disable_time(dReal time);
57 INLINE
void set_auto_disable_flag(
int do_auto_disable);
60 INLINE dReal get_erp()
const;
61 INLINE dReal get_cfm()
const;
62 INLINE
int get_quick_step_num_iterations()
const;
63 INLINE dReal get_quick_step_w()
const;
64 INLINE dReal get_contact_max_correcting_vel()
const;
65 INLINE dReal get_contact_surface_layer()
const;
66 INLINE dReal get_auto_disable_linear_threshold()
const;
67 INLINE dReal get_auto_disable_angular_threshold()
const;
68 INLINE
int get_auto_disable_steps()
const;
69 INLINE dReal get_auto_disable_time()
const;
70 INLINE
int get_auto_disable_flag()
const;
72 INLINE
LVecBase3f impulse_to_force(dReal stepsize, \
73 dReal ix, dReal iy, dReal iz);
74 INLINE
LVecBase3f impulse_to_force(dReal stepsize, \
77 INLINE
void step(dReal stepsize);
78 INLINE
void quick_step(dReal stepsize);
82 void init_surface_table(PN_uint8 num_surfaces);
84 void add_body_dampening(
OdeBody& body,
int surface);
85 void set_surface_entry(PN_uint8 pos1, PN_uint8 pos2,
93 float apply_dampening(
float dt,
OdeBody& body);
95 operator bool ()
const;
101 void set_dampen_on_bodies(dBodyID id1, dBodyID id2,dReal damp);
107 PN_uint8 _num_surfaces;
120 register_type(_type_handle,
"OdeWorld",
121 TypedObject::get_class_type());
124 return get_class_type();
132 #include "odeWorld.I"
This is the base class for all three-component vectors and points.
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...
An STL function object class, this is intended to be used on any ordered collection of class objects ...
TypeHandle is the identifier used to differentiate C++ class types.