panda3d.ode.OdeBody

class OdeBody

Bases: TypedObject

Inheritance diagram

Inheritance diagram of OdeBody

__init__(world: OdeWorld) → None
destroy() → None
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.

getId() → dBodyID

Returns the underlying dBodyID.

Return type

dBodyID

setAutoDisableLinearThreshold(linear_threshold: dReal) → None
setAutoDisableAngularThreshold(angular_threshold: dReal) → None
setAutoDisableSteps(steps: int) → None
setAutoDisableTime(time: dReal) → None
setAutoDisableFlag(do_auto_disable: int) → None
setAutoDisableDefaults() → None
setData(data: object) → None
setPosition(pos: LVecBase3f) → None
setPosition(x: dReal, y: dReal, z: dReal) → None
setRotation(r: LMatrix3f) → None
setQuaternion(q: LQuaternionf) → None
setLinearVel(vel: LVecBase3f) → None
setLinearVel(x: dReal, y: dReal, z: dReal) → None
setAngularVel(vel: LVecBase3f) → None
setAngularVel(x: dReal, y: dReal, z: dReal) → None
setMass(mass: OdeMass) → None
getAutoDisableLinearThreshold() → dReal
Return type

dReal

getAutoDisableAngularThreshold() → dReal
Return type

dReal

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

dReal

getAutoDisableFlag() → int
getData() → object
getPosition() → LVecBase3f
Return type

LVecBase3f

getRotation() → LMatrix3f
Return type

LMatrix3f

getQuaternion() → LVecBase4f
Return type

LVecBase4f

getLinearVel() → LVecBase3f
Return type

LVecBase3f

getAngularVel() → LVecBase3f
Return type

LVecBase3f

getMass() → OdeMass
Return type

OdeMass

addForce(f: LVecBase3f) → None
addForce(fx: dReal, fy: dReal, fz: dReal) → None
addTorque(f: LVecBase3f) → None
addTorque(fx: dReal, fy: dReal, fz: dReal) → None
addRelForce(f: LVecBase3f) → None
addRelForce(fx: dReal, fy: dReal, fz: dReal) → None
addRelTorque(f: LVecBase3f) → None
addRelTorque(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
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
setForce(f: LVecBase3f) → None
setForce(x: dReal, y: dReal, z: dReal) → None
setTorque(f: LVecBase3f) → None
setTorque(x: dReal, y: dReal, z: dReal) → None
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

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

vectorToWorld(pos: LVecBase3f) → LVecBase3f
Return type

LVecBase3f

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

LVecBase3f

vectorFromWorld(pos: LVecBase3f) → LVecBase3f
Return type

LVecBase3f

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

LVecBase3f

setFiniteRotationMode(mode: int) → None
setFiniteRotationAxis(axis: LVecBase3f) → None
setFiniteRotationAxis(x: dReal, y: dReal, z: dReal) → None
getFiniteRotationMode() → int
getFiniteRotationAxis() → LVecBase3f
Return type

LVecBase3f

getNumJoints() → int
getJoint(index: int) → OdeJoint
Return type

OdeJoint

getConvertedJoint(i: int) → object
enable() → None
disable() → None
isEnabled() → int
setGravityMode(mode: int) → None
getGravityMode() → int
write(out: ostream, indent: int) → None
compareTo(other: OdeBody) → int
static getClassType() → TypeHandle
Return type

TypeHandle

getJoints() → list
property joints