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

Public Member Functions

 __init__ (OdeWorld world)
 
 addForce (const LVecBase3f f)
 
 addForce (DReal fx, DReal fy, DReal fz)
 
 addForceAtPos (const LVecBase3f f, const LVecBase3f pos)
 
 addForceAtPos (DReal fx, DReal fy, DReal fz, DReal px, DReal py, DReal pz)
 
 addForceAtRelPos (const LVecBase3f f, const LVecBase3f pos)
 
 addForceAtRelPos (DReal fx, DReal fy, DReal fz, DReal px, DReal py, DReal pz)
 
 addRelForce (const LVecBase3f f)
 
 addRelForce (DReal fx, DReal fy, DReal fz)
 
 addRelForceAtPos (const LVecBase3f f, const LVecBase3f pos)
 
 addRelForceAtPos (DReal fx, DReal fy, DReal fz, DReal px, DReal py, DReal pz)
 
 addRelForceAtRelPos (const LVecBase3f f, const LVecBase3f pos)
 
 addRelForceAtRelPos (DReal fx, DReal fy, DReal fz, DReal px, DReal py, DReal pz)
 
 addRelTorque (const LVecBase3f f)
 
 addRelTorque (DReal fx, DReal fy, DReal fz)
 
 addTorque (const LVecBase3f f)
 
 addTorque (DReal fx, DReal fy, DReal fz)
 
int compareTo (const OdeBody other)
 
 destroy ()
 
 disable ()
 
 enable ()
 
LVecBase3f getAngularVel ()
 
DReal getAutoDisableAngularThreshold ()
 
int getAutoDisableFlag ()
 
DReal getAutoDisableLinearThreshold ()
 
int getAutoDisableSteps ()
 
DReal getAutoDisableTime ()
 
object getConvertedJoint (int i)
 
object getData ()
 
LVecBase3f getFiniteRotationAxis ()
 
int getFiniteRotationMode ()
 
int getGravityMode ()
 
DBodyID getId ()
 Returns the underlying dBodyID. More...
 
OdeJoint getJoint (int index)
 
list getJoints ()
 
LVecBase3f getLinearVel ()
 
OdeMass getMass ()
 
int getNumJoints ()
 
LPoint3f getPointVel (const LVecBase3f pos)
 
LPoint3f getPointVel (DReal px, DReal py, DReal pz)
 
LVecBase3f getPosition ()
 
LPoint3f getPosRelPoint (const LVecBase3f pos)
 
LPoint3f getPosRelPoint (DReal px, DReal py, DReal pz)
 
LVecBase4f getQuaternion ()
 
LPoint3f getRelPointPos (const LVecBase3f pos)
 
LPoint3f getRelPointPos (DReal px, DReal py, DReal pz)
 
LPoint3f getRelPointVel (const LVecBase3f pos)
 
LPoint3f getRelPointVel (DReal px, DReal py, DReal pz)
 
LMatrix3f getRotation ()
 
bool isEmpty ()
 Returns true if the ID is 0, meaning the OdeBody does not point to a valid body. More...
 
int isEnabled ()
 
 setAngularVel (const LVecBase3f vel)
 
 setAngularVel (DReal x, DReal y, DReal z)
 
 setAutoDisableAngularThreshold (DReal angular_threshold)
 
 setAutoDisableDefaults ()
 
 setAutoDisableFlag (int do_auto_disable)
 
 setAutoDisableLinearThreshold (DReal linear_threshold)
 
 setAutoDisableSteps (int steps)
 
 setAutoDisableTime (DReal time)
 
 setData (object data)
 
 setFiniteRotationAxis (const LVecBase3f axis)
 
 setFiniteRotationAxis (DReal x, DReal y, DReal z)
 
 setFiniteRotationMode (int mode)
 
 setForce (const LVecBase3f f)
 
 setForce (DReal x, DReal y, DReal z)
 
 setGravityMode (int mode)
 
 setLinearVel (const LVecBase3f vel)
 
 setLinearVel (DReal x, DReal y, DReal z)
 
 setMass (OdeMass mass)
 
 setPosition (const LVecBase3f pos)
 
 setPosition (DReal x, DReal y, DReal z)
 
 setQuaternion (const LQuaternionf q)
 
 setRotation (const LMatrix3f r)
 
 setTorque (const LVecBase3f f)
 
 setTorque (DReal x, DReal y, DReal z)
 
LVecBase3f vectorFromWorld (const LVecBase3f pos)
 
LVecBase3f vectorFromWorld (DReal px, DReal py, DReal pz)
 
LVecBase3f vectorToWorld (const LVecBase3f pos)
 
LVecBase3f vectorToWorld (DReal px, DReal py, DReal pz)
 
 write (Ostream out, unsigned int indent)
 
- 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__()

__init__ ( OdeWorld  world)

◆ addForce() [1/2]

addForce ( const LVecBase3f  f)

◆ addForce() [2/2]

addForce ( DReal  fx,
DReal  fy,
DReal  fz 
)

◆ addForceAtPos() [1/2]

addForceAtPos ( const LVecBase3f  f,
const LVecBase3f  pos 
)

◆ addForceAtPos() [2/2]

addForceAtPos ( DReal  fx,
DReal  fy,
DReal  fz,
DReal  px,
DReal  py,
DReal  pz 
)

◆ addForceAtRelPos() [1/2]

addForceAtRelPos ( const LVecBase3f  f,
const LVecBase3f  pos 
)

◆ addForceAtRelPos() [2/2]

addForceAtRelPos ( DReal  fx,
DReal  fy,
DReal  fz,
DReal  px,
DReal  py,
DReal  pz 
)

◆ addRelForce() [1/2]

addRelForce ( const LVecBase3f  f)

◆ addRelForce() [2/2]

addRelForce ( DReal  fx,
DReal  fy,
DReal  fz 
)

◆ addRelForceAtPos() [1/2]

addRelForceAtPos ( const LVecBase3f  f,
const LVecBase3f  pos 
)

◆ addRelForceAtPos() [2/2]

addRelForceAtPos ( DReal  fx,
DReal  fy,
DReal  fz,
DReal  px,
DReal  py,
DReal  pz 
)

◆ addRelForceAtRelPos() [1/2]

addRelForceAtRelPos ( const LVecBase3f  f,
const LVecBase3f  pos 
)

◆ addRelForceAtRelPos() [2/2]

addRelForceAtRelPos ( DReal  fx,
DReal  fy,
DReal  fz,
DReal  px,
DReal  py,
DReal  pz 
)

◆ addRelTorque() [1/2]

addRelTorque ( const LVecBase3f  f)

◆ addRelTorque() [2/2]

addRelTorque ( DReal  fx,
DReal  fy,
DReal  fz 
)

◆ addTorque() [1/2]

addTorque ( const LVecBase3f  f)

◆ addTorque() [2/2]

addTorque ( DReal  fx,
DReal  fy,
DReal  fz 
)

◆ compareTo()

int compareTo ( const OdeBody  other)

◆ destroy()

destroy ( )

◆ disable()

disable ( )

◆ enable()

enable ( )

◆ getAngularVel()

LVecBase3f getAngularVel ( )

◆ getAutoDisableAngularThreshold()

DReal getAutoDisableAngularThreshold ( )

◆ getAutoDisableFlag()

int getAutoDisableFlag ( )

◆ getAutoDisableLinearThreshold()

DReal getAutoDisableLinearThreshold ( )

◆ getAutoDisableSteps()

int getAutoDisableSteps ( )

◆ getAutoDisableTime()

DReal getAutoDisableTime ( )

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getConvertedJoint()

object getConvertedJoint ( int  i)

◆ getData()

object getData ( )

◆ getFiniteRotationAxis()

LVecBase3f getFiniteRotationAxis ( )

◆ getFiniteRotationMode()

int getFiniteRotationMode ( )

◆ getGravityMode()

int getGravityMode ( )

◆ getId()

DBodyID getId ( )

Returns the underlying dBodyID.

◆ getJoint()

OdeJoint getJoint ( int  index)

◆ getJoints()

list getJoints ( )

◆ getLinearVel()

LVecBase3f getLinearVel ( )

◆ getMass()

OdeMass getMass ( )

◆ getNumJoints()

int getNumJoints ( )

◆ getPointVel() [1/2]

LPoint3f getPointVel ( const LVecBase3f  pos)

◆ getPointVel() [2/2]

LPoint3f getPointVel ( DReal  px,
DReal  py,
DReal  pz 
)

◆ getPosition()

LVecBase3f getPosition ( )

◆ getPosRelPoint() [1/2]

LPoint3f getPosRelPoint ( const LVecBase3f  pos)

◆ getPosRelPoint() [2/2]

LPoint3f getPosRelPoint ( DReal  px,
DReal  py,
DReal  pz 
)

◆ getQuaternion()

LVecBase4f getQuaternion ( )

◆ getRelPointPos() [1/2]

LPoint3f getRelPointPos ( const LVecBase3f  pos)

◆ getRelPointPos() [2/2]

LPoint3f getRelPointPos ( DReal  px,
DReal  py,
DReal  pz 
)

◆ getRelPointVel() [1/2]

LPoint3f getRelPointVel ( const LVecBase3f  pos)

◆ getRelPointVel() [2/2]

LPoint3f getRelPointVel ( DReal  px,
DReal  py,
DReal  pz 
)

◆ getRotation()

LMatrix3f getRotation ( )

◆ isEmpty()

bool isEmpty ( )

Returns true if the ID is 0, meaning the OdeBody does not point to a valid body.

It is an error to call a method on an empty body. Note that an empty OdeBody also evaluates to False.

◆ isEnabled()

int isEnabled ( )

◆ setAngularVel() [1/2]

setAngularVel ( const LVecBase3f  vel)

◆ setAngularVel() [2/2]

setAngularVel ( DReal  x,
DReal  y,
DReal  z 
)

◆ setAutoDisableAngularThreshold()

setAutoDisableAngularThreshold ( DReal  angular_threshold)

◆ setAutoDisableDefaults()

setAutoDisableDefaults ( )

◆ setAutoDisableFlag()

setAutoDisableFlag ( int  do_auto_disable)

◆ setAutoDisableLinearThreshold()

setAutoDisableLinearThreshold ( DReal  linear_threshold)

◆ setAutoDisableSteps()

setAutoDisableSteps ( int  steps)

◆ setAutoDisableTime()

setAutoDisableTime ( DReal  time)

◆ setData()

setData ( object  data)

◆ setFiniteRotationAxis() [1/2]

setFiniteRotationAxis ( const LVecBase3f  axis)

◆ setFiniteRotationAxis() [2/2]

setFiniteRotationAxis ( DReal  x,
DReal  y,
DReal  z 
)

◆ setFiniteRotationMode()

setFiniteRotationMode ( int  mode)

◆ setForce() [1/2]

setForce ( const LVecBase3f  f)

◆ setForce() [2/2]

setForce ( DReal  x,
DReal  y,
DReal  z 
)

◆ setGravityMode()

setGravityMode ( int  mode)

◆ setLinearVel() [1/2]

setLinearVel ( const LVecBase3f  vel)

◆ setLinearVel() [2/2]

setLinearVel ( DReal  x,
DReal  y,
DReal  z 
)

◆ setMass()

setMass ( OdeMass  mass)

◆ setPosition() [1/2]

setPosition ( const LVecBase3f  pos)

◆ setPosition() [2/2]

setPosition ( DReal  x,
DReal  y,
DReal  z 
)

◆ setQuaternion()

setQuaternion ( const LQuaternionf  q)

◆ setRotation()

setRotation ( const LMatrix3f  r)

◆ setTorque() [1/2]

setTorque ( const LVecBase3f  f)

◆ setTorque() [2/2]

setTorque ( DReal  x,
DReal  y,
DReal  z 
)

◆ vectorFromWorld() [1/2]

LVecBase3f vectorFromWorld ( const LVecBase3f  pos)

◆ vectorFromWorld() [2/2]

LVecBase3f vectorFromWorld ( DReal  px,
DReal  py,
DReal  pz 
)

◆ vectorToWorld() [1/2]

LVecBase3f vectorToWorld ( const LVecBase3f  pos)

◆ vectorToWorld() [2/2]

LVecBase3f vectorToWorld ( DReal  px,
DReal  py,
DReal  pz 
)

◆ write()

write ( Ostream  out,
unsigned int  indent 
)