Panda3D
Loading...
Searching...
No Matches
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.
 
int get_quick_step_num_iterations () const
 
dReal get_quick_step_w () const
 
sSurfaceParamsget_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)
 
- Public Member Functions inherited from TypedObject
 TypedObject (const TypedObject &copy)=default
 
TypedObjectas_typed_object ()
 Returns the object, upcast (if necessary) to a TypedObject pointer.
 
const TypedObjectas_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.
 
TypedObjectoperator= (const TypedObject &copy)=default
 
- Public Member Functions inherited from MemoryBase
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 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.
 

Additional Inherited Members

- Public Attributes inherited from TypedObject
 get_type
 

Detailed Description

Definition at line 33 of file odeWorld.h.

Constructor & Destructor Documentation

◆ OdeWorld() [1/2]

OdeWorld::OdeWorld ( )

Definition at line 20 of file odeWorld.cxx.

◆ OdeWorld() [2/2]

OdeWorld::OdeWorld ( const OdeWorld & copy)

Definition at line 30 of file odeWorld.cxx.

◆ ~OdeWorld()

OdeWorld::~OdeWorld ( )
virtual

Definition at line 37 of file odeWorld.cxx.

Member Function Documentation

◆ add_body_dampening()

void OdeWorld::add_body_dampening ( OdeBody & body,
int surface )

Definition at line 63 of file odeWorld.cxx.

◆ apply_dampening()

float OdeWorld::apply_dampening ( float dt,
OdeBody & body )

Definition at line 174 of file odeWorld.cxx.

◆ compare_to()

int OdeWorld::compare_to ( const OdeWorld & other) const
inline

Definition at line 192 of file odeWorld.I.

◆ destroy()

void OdeWorld::destroy ( )

Definition at line 44 of file odeWorld.cxx.

◆ force_init_type()

virtual TypeHandle OdeWorld::force_init_type ( )
inlinevirtual

Implements TypedObject.

Definition at line 124 of file odeWorld.h.

◆ get_auto_disable_angular_threshold()

dReal OdeWorld::get_auto_disable_angular_threshold ( ) const
inline

Definition at line 152 of file odeWorld.I.

◆ get_auto_disable_flag()

int OdeWorld::get_auto_disable_flag ( ) const
inline

Definition at line 182 of file odeWorld.I.

◆ get_auto_disable_linear_threshold()

dReal OdeWorld::get_auto_disable_linear_threshold ( ) const
inline

Definition at line 142 of file odeWorld.I.

◆ get_auto_disable_steps()

int OdeWorld::get_auto_disable_steps ( ) const
inline

Definition at line 162 of file odeWorld.I.

◆ get_auto_disable_time()

dReal OdeWorld::get_auto_disable_time ( ) const
inline

Definition at line 172 of file odeWorld.I.

◆ get_cfm()

dReal OdeWorld::get_cfm ( ) const
inline

Definition at line 65 of file odeWorld.I.

◆ get_class_type()

static TypeHandle OdeWorld::get_class_type ( )
inlinestatic

Definition at line 113 of file odeWorld.h.

◆ get_contact_max_correcting_vel()

dReal OdeWorld::get_contact_max_correcting_vel ( ) const
inline

Definition at line 127 of file odeWorld.I.

◆ get_contact_surface_layer()

dReal OdeWorld::get_contact_surface_layer ( ) const
inline

Definition at line 137 of file odeWorld.I.

◆ get_erp()

dReal OdeWorld::get_erp ( ) const
inline

Definition at line 55 of file odeWorld.I.

◆ get_gravity()

LVecBase3f OdeWorld::get_gravity ( ) const
inline

Definition at line 42 of file odeWorld.I.

◆ get_id()

dWorldID OdeWorld::get_id ( ) const
inline

Returns the underlying dWorldID.

Definition at line 27 of file odeWorld.I.

◆ get_quick_step_num_iterations()

int OdeWorld::get_quick_step_num_iterations ( ) const
inline

Definition at line 107 of file odeWorld.I.

◆ get_quick_step_w()

dReal OdeWorld::get_quick_step_w ( ) const
inline

Definition at line 117 of file odeWorld.I.

◆ get_surface()

sSurfaceParams & OdeWorld::get_surface ( uint8_t surface1,
uint8_t surface2 )

Definition at line 100 of file odeWorld.cxx.

◆ get_type()

virtual TypeHandle OdeWorld::get_type ( ) const
inlinevirtual

Implements TypedObject.

Definition at line 121 of file odeWorld.h.

◆ impulse_to_force() [1/2]

LVecBase3f OdeWorld::impulse_to_force ( dReal stepsize,
const LVecBase3f & impulse )
inline

Definition at line 86 of file odeWorld.I.

◆ impulse_to_force() [2/2]

LVecBase3f OdeWorld::impulse_to_force ( dReal stepsize,
dReal ix,
dReal iy,
dReal iz )
inline

Definition at line 75 of file odeWorld.I.

◆ init_surface_table()

void OdeWorld::init_surface_table ( uint8_t num_surfaces)

Definition at line 69 of file odeWorld.cxx.

◆ init_type()

static void OdeWorld::init_type ( )
inlinestatic

Definition at line 116 of file odeWorld.h.

◆ 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 19 of file odeWorld.I.

◆ operator bool()

OdeWorld::operator bool ( ) const

Definition at line 185 of file odeWorld.cxx.

◆ quick_step()

void OdeWorld::quick_step ( dReal stepsize)
inline

Definition at line 97 of file odeWorld.I.

◆ set_auto_disable_angular_threshold()

void OdeWorld::set_auto_disable_angular_threshold ( dReal angular_threshold)
inline

Definition at line 157 of file odeWorld.I.

◆ set_auto_disable_flag()

void OdeWorld::set_auto_disable_flag ( int do_auto_disable)
inline

Definition at line 187 of file odeWorld.I.

◆ set_auto_disable_linear_threshold()

void OdeWorld::set_auto_disable_linear_threshold ( dReal linear_threshold)
inline

Definition at line 147 of file odeWorld.I.

◆ set_auto_disable_steps()

void OdeWorld::set_auto_disable_steps ( int steps)
inline

Definition at line 167 of file odeWorld.I.

◆ set_auto_disable_time()

void OdeWorld::set_auto_disable_time ( dReal time)
inline

Definition at line 177 of file odeWorld.I.

◆ set_cfm()

void OdeWorld::set_cfm ( dReal cfm)
inline

Definition at line 60 of file odeWorld.I.

◆ set_contact_max_correcting_vel()

void OdeWorld::set_contact_max_correcting_vel ( dReal vel)
inline

Definition at line 122 of file odeWorld.I.

◆ set_contact_surface_layer()

void OdeWorld::set_contact_surface_layer ( dReal depth)
inline

Definition at line 132 of file odeWorld.I.

◆ set_dampen_on_bodies()

void OdeWorld::set_dampen_on_bodies ( dBodyID id1,
dBodyID id2,
dReal damp )

Definition at line 164 of file odeWorld.cxx.

◆ set_erp()

void OdeWorld::set_erp ( dReal erp)
inline

Definition at line 50 of file odeWorld.I.

◆ set_gravity() [1/2]

void OdeWorld::set_gravity ( const LVecBase3f & vec)
inline

Definition at line 37 of file odeWorld.I.

◆ set_gravity() [2/2]

void OdeWorld::set_gravity ( dReal x,
dReal y,
dReal z )
inline

Definition at line 32 of file odeWorld.I.

◆ set_quick_step_num_iterations()

void OdeWorld::set_quick_step_num_iterations ( int num)
inline

Definition at line 102 of file odeWorld.I.

◆ set_quick_step_w()

void OdeWorld::set_quick_step_w ( dReal over_relaxation)
inline

Definition at line 112 of file odeWorld.I.

◆ set_surface()

void OdeWorld::set_surface ( int pos1,
int pos2,
sSurfaceParams & entry )

Definition at line 76 of file odeWorld.cxx.

◆ set_surface_entry()

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.

◆ step()

void OdeWorld::step ( dReal stepsize)
inline

Definition at line 70 of file odeWorld.I.


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