OdeBody

class OdeBody

Bases: TypedObject

Inheritance diagram

Inheritance diagram of OdeBody

OdeBody(OdeWorld &world)
void add_force(dReal fx, dReal fy, dReal fz)
void add_force(LVecBase3f const &f)
void add_force_at_pos(dReal fx, dReal fy, dReal fz, dReal px, dReal py, dReal pz)
void add_force_at_pos(LVecBase3f const &f, LVecBase3f const &pos)
void add_force_at_rel_pos(dReal fx, dReal fy, dReal fz, dReal px, dReal py, dReal pz)
void add_force_at_rel_pos(LVecBase3f const &f, LVecBase3f const &pos)
void add_rel_force(dReal fx, dReal fy, dReal fz)
void add_rel_force(LVecBase3f const &f)
void add_rel_force_at_pos(dReal fx, dReal fy, dReal fz, dReal px, dReal py, dReal pz)
void add_rel_force_at_pos(LVecBase3f const &f, LVecBase3f const &pos)
void add_rel_force_at_rel_pos(dReal fx, dReal fy, dReal fz, dReal px, dReal py, dReal pz)
void add_rel_force_at_rel_pos(LVecBase3f const &f, LVecBase3f const &pos)
void add_rel_torque(dReal fx, dReal fy, dReal fz)
void add_rel_torque(LVecBase3f const &f)
void add_torque(dReal fx, dReal fy, dReal fz)
void add_torque(LVecBase3f const &f)
int compare_to(OdeBody const &other) const
void destroy(void)
void disable(void)
void enable(void)
LVecBase3f get_angular_vel(void) const
dReal get_auto_disable_angular_threshold(void) const
int get_auto_disable_flag(void) const
dReal get_auto_disable_linear_threshold(void) const
int get_auto_disable_steps(void) const
dReal get_auto_disable_time(void) const
static TypeHandle get_class_type(void)
PyObject *get_converted_joint(int i) const
PyObject *get_data(void) const
LVecBase3f get_finite_rotation_axis(void) const
int get_finite_rotation_mode(void) const
int get_gravity_mode(void) const
dBodyID get_id(void) const

Returns the underlying dBodyID.

OdeJoint get_joint(int index) const
LVecBase3f get_linear_vel(void) const
OdeMass get_mass(void) const
int get_num_joints(void) const
LPoint3f get_point_vel(dReal px, dReal py, dReal pz) const
LPoint3f get_point_vel(LVecBase3f const &pos) const
LPoint3f get_pos_rel_point(dReal px, dReal py, dReal pz) const
LPoint3f get_pos_rel_point(LVecBase3f const &pos) const
LVecBase3f get_position(void) const
LVecBase4f get_quaternion(void) const
LPoint3f get_rel_point_pos(dReal px, dReal py, dReal pz) const
LPoint3f get_rel_point_pos(LVecBase3f const &pos) const
LPoint3f get_rel_point_vel(dReal px, dReal py, dReal pz) const
LPoint3f get_rel_point_vel(LVecBase3f const &pos) const
LMatrix3f get_rotation(void) const
bool is_empty(void) const

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.

int is_enabled(void) const
void set_angular_vel(dReal x, dReal y, dReal z)
void set_angular_vel(LVecBase3f const &vel)
void set_auto_disable_angular_threshold(dReal angular_threshold)
void set_auto_disable_defaults(void)
void set_auto_disable_flag(int do_auto_disable)
void set_auto_disable_linear_threshold(dReal linear_threshold)
void set_auto_disable_steps(int steps)
void set_auto_disable_time(dReal time)
void set_data(void *data)
void set_data(PyObject *data)
void set_finite_rotation_axis(dReal x, dReal y, dReal z)
void set_finite_rotation_axis(LVecBase3f const &axis)
void set_finite_rotation_mode(int mode)
void set_force(dReal x, dReal y, dReal z)
void set_force(LVecBase3f const &f)
void set_gravity_mode(int mode)
void set_linear_vel(dReal x, dReal y, dReal z)
void set_linear_vel(LVecBase3f const &vel)
void set_mass(OdeMass &mass)
void set_position(dReal x, dReal y, dReal z)
void set_position(LVecBase3f const &pos)
void set_quaternion(LQuaternionf const &q)
void set_rotation(LMatrix3f const &r)
void set_torque(dReal x, dReal y, dReal z)
void set_torque(LVecBase3f const &f)
LVecBase3f vector_from_world(dReal px, dReal py, dReal pz) const
LVecBase3f vector_from_world(LVecBase3f const &pos) const
LVecBase3f vector_to_world(dReal px, dReal py, dReal pz) const
LVecBase3f vector_to_world(LVecBase3f const &pos) const
virtual void write(std::ostream &out = ::std::cout, unsigned int indent = 0) const