OdeBody

from panda3d.ode import OdeBody
class OdeBody

Bases:

Bases: TypedObject

Inheritance diagram

Inheritance diagram of OdeBody

__init__(world: OdeWorld)
addForce(f: panda3d.core.LVecBase3f)
addForce(fx: float, fy: float, fz: float)
addForceAtPos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)
addForceAtPos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)
addForceAtRelPos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)
addForceAtRelPos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)
addRelForce(f: panda3d.core.LVecBase3f)
addRelForce(fx: float, fy: float, fz: float)
addRelForceAtPos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)
addRelForceAtPos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)
addRelForceAtRelPos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)
addRelForceAtRelPos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)
addRelTorque(f: panda3d.core.LVecBase3f)
addRelTorque(fx: float, fy: float, fz: float)
addTorque(f: panda3d.core.LVecBase3f)
addTorque(fx: float, fy: float, fz: float)
compareTo(other: OdeBody) int
destroy()
disable()
enable()
getAngularVel() panda3d.core.LVecBase3f
getAutoDisableAngularThreshold() float
getAutoDisableFlag() int
getAutoDisableLinearThreshold() float
getAutoDisableSteps() int
getAutoDisableTime() float
static getClassType() panda3d.core.TypeHandle
getConvertedJoint(i: int) object
getData() object
getFiniteRotationAxis() panda3d.core.LVecBase3f
getFiniteRotationMode() int
getGravityMode() int
getId() dBodyID

Returns the underlying dBodyID.

getJoint(index: int) OdeJoint
getJoints() list
getLinearVel() panda3d.core.LVecBase3f
getMass() OdeMass
getNumJoints() int
getPointVel(pos: panda3d.core.LVecBase3f) panda3d.core.LPoint3f
getPointVel(px: float, py: float, pz: float) panda3d.core.LPoint3f
getPosRelPoint(pos: panda3d.core.LVecBase3f) panda3d.core.LPoint3f
getPosRelPoint(px: float, py: float, pz: float) panda3d.core.LPoint3f
getPosition() panda3d.core.LVecBase3f
getQuaternion() panda3d.core.LVecBase4f
getRelPointPos(pos: panda3d.core.LVecBase3f) panda3d.core.LPoint3f
getRelPointPos(px: float, py: float, pz: float) panda3d.core.LPoint3f
getRelPointVel(pos: panda3d.core.LVecBase3f) panda3d.core.LPoint3f
getRelPointVel(px: float, py: float, pz: float) panda3d.core.LPoint3f
getRotation() panda3d.core.LMatrix3f
isEmpty() bool

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
property joints
setAngularVel(vel: panda3d.core.LVecBase3f)
setAngularVel(x: float, y: float, z: float)
setAutoDisableAngularThreshold(angular_threshold: float)
setAutoDisableDefaults()
setAutoDisableFlag(do_auto_disable: int)
setAutoDisableLinearThreshold(linear_threshold: float)
setAutoDisableSteps(steps: int)
setAutoDisableTime(time: float)
setData(data: object)
setFiniteRotationAxis(axis: panda3d.core.LVecBase3f)
setFiniteRotationAxis(x: float, y: float, z: float)
setFiniteRotationMode(mode: int)
setForce(f: panda3d.core.LVecBase3f)
setForce(x: float, y: float, z: float)
setGravityMode(mode: int)
setLinearVel(vel: panda3d.core.LVecBase3f)
setLinearVel(x: float, y: float, z: float)
setMass(mass: OdeMass)
setPosition(pos: panda3d.core.LVecBase3f)
setPosition(x: float, y: float, z: float)
setQuaternion(q: panda3d.core.LQuaternionf)
setRotation(r: panda3d.core.LMatrix3f)
setTorque(f: panda3d.core.LVecBase3f)
setTorque(x: float, y: float, z: float)
vectorFromWorld(pos: panda3d.core.LVecBase3f) panda3d.core.LVecBase3f
vectorFromWorld(px: float, py: float, pz: float) panda3d.core.LVecBase3f
vectorToWorld(pos: panda3d.core.LVecBase3f) panda3d.core.LVecBase3f
vectorToWorld(px: float, py: float, pz: float) panda3d.core.LVecBase3f
write(out: panda3d.core.ostream, indent: int)