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

Public Member Functions

 __init__ ()
 
 __init__ (const OdeWorld copy)
 
 addBodyDampening (OdeBody body, int surface)
 
float applyDampening (float dt, OdeBody body)
 
int compareTo (const OdeWorld other)
 
 destroy ()
 
DReal getAutoDisableAngularThreshold ()
 
int getAutoDisableFlag ()
 
DReal getAutoDisableLinearThreshold ()
 
int getAutoDisableSteps ()
 
DReal getAutoDisableTime ()
 
DReal getCfm ()
 
DReal getContactMaxCorrectingVel ()
 
DReal getContactSurfaceLayer ()
 
DReal getErp ()
 
LVecBase3f getGravity ()
 
DWorldID getId ()
 Returns the underlying dWorldID. More...
 
int getQuickStepNumIterations ()
 
DReal getQuickStepW ()
 
LVecBase3f impulseToForce (DReal stepsize, const LVecBase3f impulse)
 
LVecBase3f impulseToForce (DReal stepsize, DReal ix, DReal iy, DReal iz)
 
 initSurfaceTable (uint8_t num_surfaces)
 
bool isEmpty ()
 Returns true if the ID is 0, meaning the OdeWorld does not point to a valid world. More...
 
 quickStep (DReal stepsize)
 
 setAutoDisableAngularThreshold (DReal angular_threshold)
 
 setAutoDisableFlag (int do_auto_disable)
 
 setAutoDisableLinearThreshold (DReal linear_threshold)
 
 setAutoDisableSteps (int steps)
 
 setAutoDisableTime (DReal time)
 
 setCfm (DReal cfm)
 
 setContactMaxCorrectingVel (DReal vel)
 
 setContactSurfaceLayer (DReal depth)
 
 setErp (DReal erp)
 
 setGravity (const LVecBase3f vec)
 
 setGravity (DReal x, DReal y, DReal z)
 
 setQuickStepNumIterations (int num)
 
 setQuickStepW (DReal over_relaxation)
 
 setSurfaceEntry (uint8_t pos1, uint8_t pos2, DReal mu, DReal bounce, DReal bounce_vel, DReal soft_erp, DReal soft_cfm, DReal slip, DReal dampen)
 
 step (DReal stepsize)
 
- Public Member Functions inherited from TypedObject
TypeHandle getType ()
 
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More...
 
bool isExactType (TypeHandle handle)
 Returns true if the current object is the indicated type exactly. More...
 
bool isOfType (TypeHandle handle)
 Returns true if the current object is or derives from the indicated type. More...
 

Static Public Member Functions

static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle getClassType ()
 

Additional Inherited Members

- Public Attributes inherited from TypedObject
TypeHandle type
 Returns the TypeHandle representing this object's type. More...
 

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( const OdeWorld  copy)

◆ addBodyDampening()

addBodyDampening ( OdeBody  body,
int  surface 
)

◆ applyDampening()

float applyDampening ( float  dt,
OdeBody  body 
)

◆ compareTo()

int compareTo ( const OdeWorld  other)

◆ destroy()

destroy ( )

◆ getAutoDisableAngularThreshold()

DReal getAutoDisableAngularThreshold ( )

◆ getAutoDisableFlag()

int getAutoDisableFlag ( )

◆ getAutoDisableLinearThreshold()

DReal getAutoDisableLinearThreshold ( )

◆ getAutoDisableSteps()

int getAutoDisableSteps ( )

◆ getAutoDisableTime()

DReal getAutoDisableTime ( )

◆ getCfm()

DReal getCfm ( )

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getContactMaxCorrectingVel()

DReal getContactMaxCorrectingVel ( )

◆ getContactSurfaceLayer()

DReal getContactSurfaceLayer ( )

◆ getErp()

DReal getErp ( )

◆ getGravity()

LVecBase3f getGravity ( )

◆ getId()

DWorldID getId ( )

Returns the underlying dWorldID.

◆ getQuickStepNumIterations()

int getQuickStepNumIterations ( )

◆ getQuickStepW()

DReal getQuickStepW ( )

◆ impulseToForce() [1/2]

LVecBase3f impulseToForce ( DReal  stepsize,
const LVecBase3f  impulse 
)

◆ impulseToForce() [2/2]

LVecBase3f impulseToForce ( DReal  stepsize,
DReal  ix,
DReal  iy,
DReal  iz 
)

◆ initSurfaceTable()

initSurfaceTable ( uint8_t  num_surfaces)

◆ isEmpty()

bool isEmpty ( )

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.

◆ quickStep()

quickStep ( DReal  stepsize)

◆ setAutoDisableAngularThreshold()

setAutoDisableAngularThreshold ( DReal  angular_threshold)

◆ setAutoDisableFlag()

setAutoDisableFlag ( int  do_auto_disable)

◆ setAutoDisableLinearThreshold()

setAutoDisableLinearThreshold ( DReal  linear_threshold)

◆ setAutoDisableSteps()

setAutoDisableSteps ( int  steps)

◆ setAutoDisableTime()

setAutoDisableTime ( DReal  time)

◆ setCfm()

setCfm ( DReal  cfm)

◆ setContactMaxCorrectingVel()

setContactMaxCorrectingVel ( DReal  vel)

◆ setContactSurfaceLayer()

setContactSurfaceLayer ( DReal  depth)

◆ setErp()

setErp ( DReal  erp)

◆ setGravity() [1/2]

setGravity ( const LVecBase3f  vec)

◆ setGravity() [2/2]

setGravity ( DReal  x,
DReal  y,
DReal  z 
)

◆ setQuickStepNumIterations()

setQuickStepNumIterations ( int  num)

◆ setQuickStepW()

setQuickStepW ( DReal  over_relaxation)

◆ setSurfaceEntry()

setSurfaceEntry ( uint8_t  pos1,
uint8_t  pos2,
DReal  mu,
DReal  bounce,
DReal  bounce_vel,
DReal  soft_erp,
DReal  soft_cfm,
DReal  slip,
DReal  dampen 
)

◆ step()

step ( DReal  stepsize)