OdeBody

from panda3d.ode import OdeBody
class OdeBody

Bases:

Bases: TypedObject

Inheritance diagram

Inheritance diagram of OdeBody

__init__(world: OdeWorld)
add_force(f: panda3d.core.LVecBase3f)
add_force(fx: float, fy: float, fz: float)
add_force_at_pos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)
add_force_at_pos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)
add_force_at_rel_pos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)
add_force_at_rel_pos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)
add_rel_force(f: panda3d.core.LVecBase3f)
add_rel_force(fx: float, fy: float, fz: float)
add_rel_force_at_pos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)
add_rel_force_at_pos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)
add_rel_force_at_rel_pos(f: panda3d.core.LVecBase3f, pos: panda3d.core.LVecBase3f)
add_rel_force_at_rel_pos(fx: float, fy: float, fz: float, px: float, py: float, pz: float)
add_rel_torque(f: panda3d.core.LVecBase3f)
add_rel_torque(fx: float, fy: float, fz: float)
add_torque(f: panda3d.core.LVecBase3f)
add_torque(fx: float, fy: float, fz: float)
compare_to(other: OdeBody) int
destroy()
disable()
enable()
get_angular_vel() panda3d.core.LVecBase3f
get_auto_disable_angular_threshold() float
get_auto_disable_flag() int
get_auto_disable_linear_threshold() float
get_auto_disable_steps() int
get_auto_disable_time() float
static get_class_type() panda3d.core.TypeHandle
get_converted_joint(i: int) object
get_data() object
get_finite_rotation_axis() panda3d.core.LVecBase3f
get_finite_rotation_mode() int
get_gravity_mode() int
get_id() dBodyID

Returns the underlying dBodyID.

get_joint(index: int) OdeJoint
get_joints() list
get_linear_vel() panda3d.core.LVecBase3f
get_mass() OdeMass
get_num_joints() int
get_point_vel(pos: panda3d.core.LVecBase3f) panda3d.core.LPoint3f
get_point_vel(px: float, py: float, pz: float) panda3d.core.LPoint3f
get_pos_rel_point(pos: panda3d.core.LVecBase3f) panda3d.core.LPoint3f
get_pos_rel_point(px: float, py: float, pz: float) panda3d.core.LPoint3f
get_position() panda3d.core.LVecBase3f
get_quaternion() panda3d.core.LVecBase4f
get_rel_point_pos(pos: panda3d.core.LVecBase3f) panda3d.core.LPoint3f
get_rel_point_pos(px: float, py: float, pz: float) panda3d.core.LPoint3f
get_rel_point_vel(pos: panda3d.core.LVecBase3f) panda3d.core.LPoint3f
get_rel_point_vel(px: float, py: float, pz: float) panda3d.core.LPoint3f
get_rotation() panda3d.core.LMatrix3f
is_empty() 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.

is_enabled() int
property joints
set_angular_vel(vel: panda3d.core.LVecBase3f)
set_angular_vel(x: float, y: float, z: float)
set_auto_disable_angular_threshold(angular_threshold: float)
set_auto_disable_defaults()
set_auto_disable_flag(do_auto_disable: int)
set_auto_disable_linear_threshold(linear_threshold: float)
set_auto_disable_steps(steps: int)
set_auto_disable_time(time: float)
set_data(data: object)
set_finite_rotation_axis(axis: panda3d.core.LVecBase3f)
set_finite_rotation_axis(x: float, y: float, z: float)
set_finite_rotation_mode(mode: int)
set_force(f: panda3d.core.LVecBase3f)
set_force(x: float, y: float, z: float)
set_gravity_mode(mode: int)
set_linear_vel(vel: panda3d.core.LVecBase3f)
set_linear_vel(x: float, y: float, z: float)
set_mass(mass: OdeMass)
set_position(pos: panda3d.core.LVecBase3f)
set_position(x: float, y: float, z: float)
set_quaternion(q: panda3d.core.LQuaternionf)
set_rotation(r: panda3d.core.LMatrix3f)
set_torque(f: panda3d.core.LVecBase3f)
set_torque(x: float, y: float, z: float)
vector_from_world(pos: panda3d.core.LVecBase3f) panda3d.core.LVecBase3f
vector_from_world(px: float, py: float, pz: float) panda3d.core.LVecBase3f
vector_to_world(pos: panda3d.core.LVecBase3f) panda3d.core.LVecBase3f
vector_to_world(px: float, py: float, pz: float) panda3d.core.LVecBase3f
write(out: panda3d.core.ostream, indent: int)