Panda3D
|
Public Member Functions | |
OdeWorld (const OdeWorld ©) | |
void | add_body_dampening (OdeBody &body, int surface) |
float | apply_dampening (float dt, OdeBody &body) |
int | compare_to (const OdeWorld &other) const |
void | destroy () |
virtual TypeHandle | force_init_type () |
dReal | get_auto_disable_angular_threshold () const |
int | get_auto_disable_flag () const |
dReal | get_auto_disable_linear_threshold () const |
int | get_auto_disable_steps () const |
dReal | get_auto_disable_time () const |
dReal | get_cfm () const |
dReal | get_contact_max_correcting_vel () const |
dReal | get_contact_surface_layer () const |
dReal | get_erp () const |
LVecBase3f | get_gravity () const |
dWorldID | get_id () const |
Returns the underlying dWorldID. | |
int | get_quick_step_num_iterations () const |
dReal | get_quick_step_w () const |
sSurfaceParams & | get_surface (uint8_t surface1, uint8_t surface2) |
sBodyParams | get_surface_body (dBodyID id) |
virtual TypeHandle | get_type () const |
LVecBase3f | impulse_to_force (dReal stepsize, const LVecBase3f &impulse) |
LVecBase3f | impulse_to_force (dReal stepsize, dReal ix, dReal iy, dReal iz) |
void | init_surface_table (uint8_t num_surfaces) |
bool | is_empty () const |
Returns true if the ID is 0, meaning the OdeWorld does not point to a valid world. | |
operator bool () const | |
void | quick_step (dReal stepsize) |
void | set_auto_disable_angular_threshold (dReal angular_threshold) |
void | set_auto_disable_flag (int do_auto_disable) |
void | set_auto_disable_linear_threshold (dReal linear_threshold) |
void | set_auto_disable_steps (int steps) |
void | set_auto_disable_time (dReal time) |
void | set_cfm (dReal cfm) |
void | set_contact_max_correcting_vel (dReal vel) |
void | set_contact_surface_layer (dReal depth) |
void | set_dampen_on_bodies (dBodyID id1, dBodyID id2, dReal damp) |
void | set_erp (dReal erp) |
void | set_gravity (const LVecBase3f &vec) |
void | set_gravity (dReal x, dReal y, dReal z) |
void | set_quick_step_num_iterations (int num) |
void | set_quick_step_w (dReal over_relaxation) |
void | set_surface (int pos1, int pos2, sSurfaceParams &entry) |
void | set_surface_entry (uint8_t pos1, uint8_t pos2, dReal mu, dReal bounce, dReal bounce_vel, dReal soft_erp, dReal soft_cfm, dReal slip, dReal dampen) |
void | step (dReal stepsize) |
![]() | |
TypedObject (const TypedObject ©)=default | |
TypedObject * | as_typed_object () |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
const TypedObject * | as_typed_object () const |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
int | get_best_parent_from_Set (const std::set< int > &) const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. | |
TypedObject & | operator= (const TypedObject ©)=default |
![]() | |
void | operator delete (void *, void *) |
void | operator delete (void *ptr) |
void | operator delete[] (void *, void *) |
void | operator delete[] (void *ptr) |
void * | operator new (size_t size) |
void * | operator new (size_t size, void *ptr) |
void * | operator new[] (size_t size) |
void * | operator new[] (size_t size, void *ptr) |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Additional Inherited Members | |
![]() | |
get_type | |
Definition at line 33 of file odeWorld.h.
OdeWorld::OdeWorld | ( | ) |
Definition at line 20 of file odeWorld.cxx.
OdeWorld::OdeWorld | ( | const OdeWorld & | copy | ) |
Definition at line 30 of file odeWorld.cxx.
|
virtual |
Definition at line 37 of file odeWorld.cxx.
void OdeWorld::add_body_dampening | ( | OdeBody & | body, |
int | surface ) |
Definition at line 63 of file odeWorld.cxx.
float OdeWorld::apply_dampening | ( | float | dt, |
OdeBody & | body ) |
Definition at line 174 of file odeWorld.cxx.
|
inline |
Definition at line 192 of file odeWorld.I.
void OdeWorld::destroy | ( | ) |
Definition at line 44 of file odeWorld.cxx.
|
inlinevirtual |
Implements TypedObject.
Definition at line 124 of file odeWorld.h.
|
inline |
Definition at line 152 of file odeWorld.I.
|
inline |
Definition at line 182 of file odeWorld.I.
|
inline |
Definition at line 142 of file odeWorld.I.
|
inline |
Definition at line 162 of file odeWorld.I.
|
inline |
Definition at line 172 of file odeWorld.I.
|
inline |
Definition at line 65 of file odeWorld.I.
|
inlinestatic |
Definition at line 113 of file odeWorld.h.
|
inline |
Definition at line 127 of file odeWorld.I.
|
inline |
Definition at line 137 of file odeWorld.I.
|
inline |
Definition at line 55 of file odeWorld.I.
|
inline |
Definition at line 42 of file odeWorld.I.
|
inline |
Returns the underlying dWorldID.
Definition at line 27 of file odeWorld.I.
|
inline |
Definition at line 107 of file odeWorld.I.
|
inline |
Definition at line 117 of file odeWorld.I.
sSurfaceParams & OdeWorld::get_surface | ( | uint8_t | surface1, |
uint8_t | surface2 ) |
Definition at line 100 of file odeWorld.cxx.
|
inlinevirtual |
Implements TypedObject.
Definition at line 121 of file odeWorld.h.
|
inline |
Definition at line 86 of file odeWorld.I.
|
inline |
Definition at line 75 of file odeWorld.I.
void OdeWorld::init_surface_table | ( | uint8_t | num_surfaces | ) |
Definition at line 69 of file odeWorld.cxx.
|
inlinestatic |
Definition at line 116 of file odeWorld.h.
|
inline |
Returns true if the ID is 0, meaning the OdeWorld does not point to a valid world.
It is an error to call a method on an empty world. Note that an empty OdeWorld also evaluates to False.
Definition at line 19 of file odeWorld.I.
OdeWorld::operator bool | ( | ) | const |
Definition at line 185 of file odeWorld.cxx.
|
inline |
Definition at line 97 of file odeWorld.I.
|
inline |
Definition at line 157 of file odeWorld.I.
|
inline |
Definition at line 187 of file odeWorld.I.
|
inline |
Definition at line 147 of file odeWorld.I.
|
inline |
Definition at line 167 of file odeWorld.I.
|
inline |
Definition at line 177 of file odeWorld.I.
|
inline |
Definition at line 60 of file odeWorld.I.
|
inline |
Definition at line 122 of file odeWorld.I.
|
inline |
Definition at line 132 of file odeWorld.I.
void OdeWorld::set_dampen_on_bodies | ( | dBodyID | id1, |
dBodyID | id2, | ||
dReal | damp ) |
Definition at line 164 of file odeWorld.cxx.
|
inline |
Definition at line 50 of file odeWorld.I.
|
inline |
Definition at line 37 of file odeWorld.I.
|
inline |
Definition at line 32 of file odeWorld.I.
|
inline |
Definition at line 102 of file odeWorld.I.
|
inline |
Definition at line 112 of file odeWorld.I.
void OdeWorld::set_surface | ( | int | pos1, |
int | pos2, | ||
sSurfaceParams & | entry ) |
Definition at line 76 of file odeWorld.cxx.
void OdeWorld::set_surface_entry | ( | uint8_t | pos1, |
uint8_t | pos2, | ||
dReal | mu, | ||
dReal | bounce, | ||
dReal | bounce_vel, | ||
dReal | soft_erp, | ||
dReal | soft_cfm, | ||
dReal | slip, | ||
dReal | dampen ) |
Definition at line 116 of file odeWorld.cxx.
|
inline |
Definition at line 70 of file odeWorld.I.