OdeBody

from panda3d.ode import OdeBody
class OdeBody

Bases: TypedObject

Inheritance diagram

Inheritance diagram of OdeBody

__init__(world: OdeWorld)
addForce(f: panda3d.core.LVecBase3f)None
addForce(fx: float, fy: float, fz: float)None
addForceAtPos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)None
addForceAtPos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)None
addForceAtRelPos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)None
addForceAtRelPos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)None
addRelForce(f: panda3d.core.LVecBase3f)None
addRelForce(fx: float, fy: float, fz: float)None
addRelForceAtPos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)None
addRelForceAtPos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)None
addRelForceAtRelPos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)None
addRelForceAtRelPos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)None
addRelTorque(f: panda3d.core.LVecBase3f)None
addRelTorque(fx: float, fy: float, fz: float)None
addTorque(f: panda3d.core.LVecBase3f)None
addTorque(fx: float, fy: float, fz: float)None
compareTo(other: OdeBody)int
destroy()None
disable()None
enable()None
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)None
setAngularVel(x: float, y: float, z: float)None
setAutoDisableAngularThreshold(angular_threshold: float)None
setAutoDisableDefaults()None
setAutoDisableFlag(do_auto_disable: int)None
setAutoDisableLinearThreshold(linear_threshold: float)None
setAutoDisableSteps(steps: int)None
setAutoDisableTime(time: float)None
setData(data: object)None
setFiniteRotationAxis(axis: panda3d.core.LVecBase3f)None
setFiniteRotationAxis(x: float, y: float, z: float)None
setFiniteRotationMode(mode: int)None
setForce(f: panda3d.core.LVecBase3f)None
setForce(x: float, y: float, z: float)None
setGravityMode(mode: int)None
setLinearVel(vel: panda3d.core.LVecBase3f)None
setLinearVel(x: float, y: float, z: float)None
setMass(mass: OdeMass)None
setPosition(pos: panda3d.core.LVecBase3f)None
setPosition(x: float, y: float, z: float)None
setQuaternion(q: panda3d.core.LQuaternionf)None
setRotation(r: panda3d.core.LMatrix3f)None
setTorque(f: panda3d.core.LVecBase3f)None
setTorque(x: float, y: float, z: float)None
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)None