panda3d.ode.OdeBody

class OdeBody

Bases: TypedObject

Inheritance diagram

Inheritance diagram of OdeBody

__init__(world: OdeWorld) → None
addForce(f: LVecBase3f) → None
addForce(fx: dReal, fy: dReal, fz: dReal) → None
addForceAtPos(f: LVecBase3f, pos: LVecBase3f) → None
addForceAtPos(fx: dReal, fy: dReal, fz: dReal, px: dReal, py: dReal, pz: dReal) → None
addForceAtRelPos(f: LVecBase3f, pos: LVecBase3f) → None
addForceAtRelPos(fx: dReal, fy: dReal, fz: dReal, px: dReal, py: dReal, pz: dReal) → None
addRelForce(f: LVecBase3f) → None
addRelForce(fx: dReal, fy: dReal, fz: dReal) → None
addRelForceAtPos(f: LVecBase3f, pos: LVecBase3f) → None
addRelForceAtPos(fx: dReal, fy: dReal, fz: dReal, px: dReal, py: dReal, pz: dReal) → None
addRelForceAtRelPos(f: LVecBase3f, pos: LVecBase3f) → None
addRelForceAtRelPos(fx: dReal, fy: dReal, fz: dReal, px: dReal, py: dReal, pz: dReal) → None
addRelTorque(f: LVecBase3f) → None
addRelTorque(fx: dReal, fy: dReal, fz: dReal) → None
addTorque(f: LVecBase3f) → None
addTorque(fx: dReal, fy: dReal, fz: dReal) → None
compareTo(other: OdeBody) → int
destroy() → None
disable() → None
enable() → None
getAngularVel() → LVecBase3f
Return type

LVecBase3f

getAutoDisableAngularThreshold() → dReal
Return type

dReal

getAutoDisableFlag() → int
getAutoDisableLinearThreshold() → dReal
Return type

dReal

getAutoDisableSteps() → int
getAutoDisableTime() → dReal
Return type

dReal

static getClassType() → TypeHandle
Return type

TypeHandle

getConvertedJoint(i: int) → object
getData() → object
getFiniteRotationAxis() → LVecBase3f
Return type

LVecBase3f

getFiniteRotationMode() → int
getGravityMode() → int
getId() → dBodyID

Returns the underlying dBodyID.

Return type

dBodyID

getJoint(index: int) → OdeJoint
Return type

OdeJoint

getJoints() → list
getLinearVel() → LVecBase3f
Return type

LVecBase3f

getMass() → OdeMass
Return type

OdeMass

getNumJoints() → int
getPointVel(pos: LVecBase3f) → LPoint3f
Return type

LPoint3f

getPointVel(px: dReal, py: dReal, pz: dReal) → LPoint3f
Return type

LPoint3f

getPosRelPoint(pos: LVecBase3f) → LPoint3f
Return type

LPoint3f

getPosRelPoint(px: dReal, py: dReal, pz: dReal) → LPoint3f
Return type

LPoint3f

getPosition() → LVecBase3f
Return type

LVecBase3f

getQuaternion() → LVecBase4f
Return type

LVecBase4f

getRelPointPos(pos: LVecBase3f) → LPoint3f
Return type

LPoint3f

getRelPointPos(px: dReal, py: dReal, pz: dReal) → LPoint3f
Return type

LPoint3f

getRelPointVel(pos: LVecBase3f) → LPoint3f
Return type

LPoint3f

getRelPointVel(px: dReal, py: dReal, pz: dReal) → LPoint3f
Return type

LPoint3f

getRotation() → LMatrix3f
Return type

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: LVecBase3f) → None
setAngularVel(x: dReal, y: dReal, z: dReal) → None
setAutoDisableAngularThreshold(angular_threshold: dReal) → None
setAutoDisableDefaults() → None
setAutoDisableFlag(do_auto_disable: int) → None
setAutoDisableLinearThreshold(linear_threshold: dReal) → None
setAutoDisableSteps(steps: int) → None
setAutoDisableTime(time: dReal) → None
setData(data: object) → None
setFiniteRotationAxis(axis: LVecBase3f) → None
setFiniteRotationAxis(x: dReal, y: dReal, z: dReal) → None
setFiniteRotationMode(mode: int) → None
setForce(f: LVecBase3f) → None
setForce(x: dReal, y: dReal, z: dReal) → None
setGravityMode(mode: int) → None
setLinearVel(vel: LVecBase3f) → None
setLinearVel(x: dReal, y: dReal, z: dReal) → None
setMass(mass: OdeMass) → None
setPosition(pos: LVecBase3f) → None
setPosition(x: dReal, y: dReal, z: dReal) → None
setQuaternion(q: LQuaternionf) → None
setRotation(r: LMatrix3f) → None
setTorque(f: LVecBase3f) → None
setTorque(x: dReal, y: dReal, z: dReal) → None
vectorFromWorld(pos: LVecBase3f) → LVecBase3f
Return type

LVecBase3f

vectorFromWorld(px: dReal, py: dReal, pz: dReal) → LVecBase3f
Return type

LVecBase3f

vectorToWorld(pos: LVecBase3f) → LVecBase3f
Return type

LVecBase3f

vectorToWorld(px: dReal, py: dReal, pz: dReal) → LVecBase3f
Return type

LVecBase3f

write(out: ostream, indent: int) → None