Panda3D
|
Public Types | |
enum | JointType { JT_none = 0 , JT_ball , JT_hinge , JT_slider , JT_contact , JT_universal , JT_hinge2 , JT_fixed , JT_null , JT_a_motor , JT_l_motor , JT_plane2d } |
Public Member Functions | |
OdeJoint (dJointID id) | |
void | attach_bodies (const OdeBody &body1, const OdeBody &body2) |
Attaches two OdeBody objects to this joint. | |
void | attach_body (const OdeBody &body, int index) |
Attaches a single OdeBody to this joint at the specified index (0 or 1). | |
int | compare_to (const OdeJoint &other) const |
OdeAMotorJoint | convert_to_a_motor () const |
OdeBallJoint | convert_to_ball () const |
OdeContactJoint | convert_to_contact () const |
OdeFixedJoint | convert_to_fixed () const |
OdeHingeJoint | convert_to_hinge () const |
OdeHinge2Joint | convert_to_hinge2 () const |
OdeLMotorJoint | convert_to_l_motor () const |
OdeNullJoint | convert_to_null () const |
OdePlane2dJoint | convert_to_plane2d () const |
OdeSliderJoint | convert_to_slider () const |
OdeUniversalJoint | convert_to_universal () const |
void | destroy () |
void | detach () |
virtual TypeHandle | force_init_type () |
OdeBody | get_body (int index) const |
OdeJointFeedback * | get_feedback () |
dJointID | get_id () const |
Returns the underlying dJointID. | |
int | get_joint_type () const |
virtual TypeHandle | get_type () const |
bool | is_empty () const |
Returns true if the ID is 0, meaning the OdeJoint does not point to a valid joint. | |
operator bool () const | |
bool | operator== (const OdeJoint &other) const |
void | set_feedback (bool flag=true) |
void | set_feedback (OdeJointFeedback *) |
virtual void | write (std::ostream &out=std::cout, unsigned int indent=0) const |
![]() | |
TypedObject (const TypedObject ©)=default | |
TypedObject * | as_typed_object () |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
const TypedObject * | as_typed_object () const |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
int | get_best_parent_from_Set (const std::set< int > &) const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. | |
TypedObject & | operator= (const TypedObject ©)=default |
![]() | |
void | operator delete (void *, void *) |
void | operator delete (void *ptr) |
void | operator delete[] (void *, void *) |
void | operator delete[] (void *ptr) |
void * | operator new (size_t size) |
void * | operator new (size_t size, void *ptr) |
void * | operator new[] (size_t size) |
void * | operator new[] (size_t size, void *ptr) |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Friends | |
class | OdeBody |
class | OdeUtil |
Additional Inherited Members | |
![]() | |
get_type | |
Definition at line 51 of file odeJoint.h.
enum OdeJoint::JointType |
Definition at line 60 of file odeJoint.h.
OdeJoint::OdeJoint | ( | ) |
Definition at line 31 of file odeJoint.cxx.
OdeJoint::OdeJoint | ( | dJointID | id | ) |
Definition at line 40 of file odeJoint.cxx.
|
virtual |
Definition at line 49 of file odeJoint.cxx.
Attaches two OdeBody objects to this joint.
Order is important. Consider using the OdeJoint::attach extension function if you're using the Python interface.
Definition at line 64 of file odeJoint.cxx.
References OdeBody::get_id().
void OdeJoint::attach_body | ( | const OdeBody & | body, |
int | index ) |
Attaches a single OdeBody to this joint at the specified index (0 or 1).
The other index will be set to the environment (null). Consider using the OdeJoint::attach extension function if you're using the Python interface.
Definition at line 76 of file odeJoint.cxx.
References OdeBody::get_id().
|
inline |
Definition at line 73 of file odeJoint.I.
OdeAMotorJoint OdeJoint::convert_to_a_motor | ( | ) | const |
Definition at line 186 of file odeJoint.cxx.
OdeBallJoint OdeJoint::convert_to_ball | ( | ) | const |
Definition at line 130 of file odeJoint.cxx.
OdeContactJoint OdeJoint::convert_to_contact | ( | ) | const |
Definition at line 151 of file odeJoint.cxx.
OdeFixedJoint OdeJoint::convert_to_fixed | ( | ) | const |
Definition at line 172 of file odeJoint.cxx.
OdeHingeJoint OdeJoint::convert_to_hinge | ( | ) | const |
Definition at line 137 of file odeJoint.cxx.
OdeHinge2Joint OdeJoint::convert_to_hinge2 | ( | ) | const |
Definition at line 165 of file odeJoint.cxx.
OdeLMotorJoint OdeJoint::convert_to_l_motor | ( | ) | const |
Definition at line 193 of file odeJoint.cxx.
OdeNullJoint OdeJoint::convert_to_null | ( | ) | const |
Definition at line 179 of file odeJoint.cxx.
OdePlane2dJoint OdeJoint::convert_to_plane2d | ( | ) | const |
Definition at line 200 of file odeJoint.cxx.
OdeSliderJoint OdeJoint::convert_to_slider | ( | ) | const |
Definition at line 144 of file odeJoint.cxx.
OdeUniversalJoint OdeJoint::convert_to_universal | ( | ) | const |
Definition at line 158 of file odeJoint.cxx.
void OdeJoint::destroy | ( | ) |
Definition at line 53 of file odeJoint.cxx.
void OdeJoint::detach | ( | ) |
Definition at line 88 of file odeJoint.cxx.
|
inlinevirtual |
Implements TypedObject.
Definition at line 124 of file odeJoint.h.
OdeBody OdeJoint::get_body | ( | int | index | ) | const |
Definition at line 94 of file odeJoint.cxx.
|
inlinestatic |
Definition at line 113 of file odeJoint.h.
|
inline |
Definition at line 68 of file odeJoint.I.
|
inline |
Returns the underlying dJointID.
Definition at line 27 of file odeJoint.I.
|
inline |
Definition at line 44 of file odeJoint.I.
|
inlinevirtual |
Implements TypedObject.
Definition at line 121 of file odeJoint.h.
|
inlinestatic |
Definition at line 116 of file odeJoint.h.
|
inline |
Returns true if the ID is 0, meaning the OdeJoint does not point to a valid joint.
It is an error to call a method on an empty joint. Note that an empty OdeJoint also evaluates to False.
Definition at line 19 of file odeJoint.I.
OdeJoint::operator bool | ( | ) | const |
Definition at line 125 of file odeJoint.cxx.
|
inline |
Definition at line 81 of file odeJoint.I.
|
inline |
Definition at line 49 of file odeJoint.I.
|
inline |
Definition at line 63 of file odeJoint.I.
|
virtual |
Definition at line 101 of file odeJoint.cxx.
|
friend |
Definition at line 52 of file odeJoint.h.
|
friend |
Definition at line 53 of file odeJoint.h.