Panda3D
Public Member Functions | Static Public Member Functions | List of all members
OdeWorld Class Reference
Inheritance diagram for OdeWorld:
TypedObject MemoryBase

Public Member Functions

 OdeWorld (const OdeWorld &copy)
 
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. More...
 
int get_quick_step_num_iterations () const
 
dReal get_quick_step_w () const
 
sSurfaceParamsget_surface (PN_uint8 surface1, PN_uint8 surface2)
 
sBodyParams get_surface_body (dBodyID id)
 
virtual TypeHandle get_type () const
 
LVecBase3f impulse_to_force (dReal stepsize, dReal ix, dReal iy, dReal iz)
 
LVecBase3f impulse_to_force (dReal stepsize, const LVecBase3f &impulse)
 
void init_surface_table (PN_uint8 num_surfaces)
 
bool is_empty () const
 Returns true if the ID is 0, meaning the OdeWorld does not point to a valid world. More...
 
 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 (dReal x, dReal y, dReal z)
 
void set_gravity (const LVecBase3f &vec)
 
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 (PN_uint8 pos1, PN_uint8 pos2, dReal mu, dReal bounce, dReal bounce_vel, dReal soft_erp, dReal soft_cfm, dReal slip, dReal dampen)
 
void step (dReal stepsize)
 
- Public Member Functions inherited from TypedObject
 TypedObject (const TypedObject &copy)
 
TypedObjectas_typed_object ()
 Returns the object, upcast (if necessary) to a TypedObject pointer. More...
 
const TypedObjectas_typed_object () const
 Returns the object, upcast (if necessary) to a TypedObject pointer. More...
 
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. More...
 
bool is_exact_type (TypeHandle handle) const
 Returns true if the current object is the indicated type exactly. More...
 
bool is_of_type (TypeHandle handle) const
 Returns true if the current object is or derives from the indicated type. More...
 
void operator= (const TypedObject &copy)
 

Static Public Member Functions

static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from TypedObject
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. More...
 

Detailed Description

Definition at line 35 of file odeWorld.h.

Member Function Documentation

◆ get_id()

dWorldID OdeWorld::get_id ( ) const
inline

Returns the underlying dWorldID.

Definition at line 34 of file odeWorld.I.

Referenced by is_empty().

◆ is_empty()

bool OdeWorld::is_empty ( ) const
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 24 of file odeWorld.I.

References get_id().


The documentation for this class was generated from the following files: