Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Friends | List of all members
OdeUniversalJoint Class Reference
Inheritance diagram for OdeUniversalJoint:
OdeJoint TypedObject MemoryBase

Public Member Functions

 OdeUniversalJoint (dJointID id)
 
 OdeUniversalJoint (OdeWorld &world)
 
 OdeUniversalJoint (OdeWorld &world, OdeJointGroup &joint_group)
 
void add_torques (dReal torque1, dReal torque2)
 
virtual TypeHandle force_init_type ()
 
LVecBase3f get_anchor () const
 
LVecBase3f get_anchor2 () const
 
dReal get_angle1 () const
 
dReal get_angle1_rate () const
 
dReal get_angle2 () const
 
dReal get_angle2_rate () const
 
LVecBase3f get_axis1 () const
 
LVecBase3f get_axis2 () const
 
dReal get_param_bounce (int axis) const
 
dReal get_param_CFM (int axis) const
 
dReal get_param_f_max (int axis) const
 
dReal get_param_fudge_factor (int axis) const
 
dReal get_param_hi_stop (int axis) const
 
dReal get_param_lo_stop (int axis) const
 
dReal get_param_stop_CFM (int axis) const
 
dReal get_param_stop_ERP (int axis) const
 
dReal get_param_vel (int axis) const
 
virtual TypeHandle get_type () const
 
void set_anchor (const LVecBase3f &anchor)
 
void set_anchor (dReal x, dReal y, dReal z)
 
void set_axis1 (const LVecBase3f &axis)
 
void set_axis1 (dReal x, dReal y, dReal z)
 
void set_axis2 (const LVecBase3f &axis)
 
void set_axis2 (dReal x, dReal y, dReal z)
 
void set_param_bounce (int axis, dReal val)
 
void set_param_CFM (int axis, dReal val)
 
void set_param_f_max (int axis, dReal val)
 
void set_param_fudge_factor (int axis, dReal val)
 
void set_param_hi_stop (int axis, dReal val)
 
void set_param_lo_stop (int axis, dReal val)
 
void set_param_stop_CFM (int axis, dReal val)
 
void set_param_stop_ERP (int axis, dReal val)
 
void set_param_vel (int axis, dReal val)
 
- Public Member Functions inherited from OdeJoint
 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 ()
 
OdeBody get_body (int index) const
 
OdeJointFeedbackget_feedback ()
 
dJointID get_id () const
 Returns the underlying dJointID.
 
int get_joint_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
 
- Public Member Functions inherited from TypedObject
 TypedObject (const TypedObject &copy)=default
 
TypedObjectas_typed_object ()
 Returns the object, upcast (if necessary) to a TypedObject pointer.
 
const TypedObjectas_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.
 
TypedObjectoperator= (const TypedObject &copy)=default
 
- Public Member Functions inherited from MemoryBase
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 Public Member Functions inherited from OdeJoint
static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from TypedObject
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 OdeJoint
 

Additional Inherited Members

- Public Types inherited from OdeJoint
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 Attributes inherited from TypedObject
 get_type
 

Detailed Description

Definition at line 30 of file odeUniversalJoint.h.

Constructor & Destructor Documentation

◆ OdeUniversalJoint() [1/3]

OdeUniversalJoint::OdeUniversalJoint ( dJointID id)

Definition at line 19 of file odeUniversalJoint.cxx.

◆ OdeUniversalJoint() [2/3]

OdeUniversalJoint::OdeUniversalJoint ( OdeWorld & world)

Definition at line 24 of file odeUniversalJoint.cxx.

◆ OdeUniversalJoint() [3/3]

OdeUniversalJoint::OdeUniversalJoint ( OdeWorld & world,
OdeJointGroup & joint_group )

Definition at line 29 of file odeUniversalJoint.cxx.

◆ ~OdeUniversalJoint()

OdeUniversalJoint::~OdeUniversalJoint ( )
virtual

Definition at line 34 of file odeUniversalJoint.cxx.

Member Function Documentation

◆ add_torques()

void OdeUniversalJoint::add_torques ( dReal torque1,
dReal torque2 )
inline

Definition at line 44 of file odeUniversalJoint.I.

◆ force_init_type()

virtual TypeHandle OdeUniversalJoint::force_init_type ( )
inlinevirtual

Reimplemented from OdeJoint.

Definition at line 90 of file odeUniversalJoint.h.

◆ get_anchor()

LVecBase3f OdeUniversalJoint::get_anchor ( ) const
inline

Definition at line 49 of file odeUniversalJoint.I.

◆ get_anchor2()

LVecBase3f OdeUniversalJoint::get_anchor2 ( ) const
inline

Definition at line 56 of file odeUniversalJoint.I.

◆ get_angle1()

dReal OdeUniversalJoint::get_angle1 ( ) const
inline

Definition at line 77 of file odeUniversalJoint.I.

◆ get_angle1_rate()

dReal OdeUniversalJoint::get_angle1_rate ( ) const
inline

Definition at line 87 of file odeUniversalJoint.I.

◆ get_angle2()

dReal OdeUniversalJoint::get_angle2 ( ) const
inline

Definition at line 82 of file odeUniversalJoint.I.

◆ get_angle2_rate()

dReal OdeUniversalJoint::get_angle2_rate ( ) const
inline

Definition at line 92 of file odeUniversalJoint.I.

◆ get_axis1()

LVecBase3f OdeUniversalJoint::get_axis1 ( ) const
inline

Definition at line 63 of file odeUniversalJoint.I.

◆ get_axis2()

LVecBase3f OdeUniversalJoint::get_axis2 ( ) const
inline

Definition at line 70 of file odeUniversalJoint.I.

◆ get_class_type()

static TypeHandle OdeUniversalJoint::get_class_type ( )
inlinestatic

Definition at line 79 of file odeUniversalJoint.h.

◆ get_param_bounce()

dReal OdeUniversalJoint::get_param_bounce ( int axis) const
inline

Definition at line 257 of file odeUniversalJoint.I.

◆ get_param_CFM()

dReal OdeUniversalJoint::get_param_CFM ( int axis) const
inline

Definition at line 269 of file odeUniversalJoint.I.

◆ get_param_f_max()

dReal OdeUniversalJoint::get_param_f_max ( int axis) const
inline

Definition at line 233 of file odeUniversalJoint.I.

◆ get_param_fudge_factor()

dReal OdeUniversalJoint::get_param_fudge_factor ( int axis) const
inline

Definition at line 245 of file odeUniversalJoint.I.

◆ get_param_hi_stop()

dReal OdeUniversalJoint::get_param_hi_stop ( int axis) const
inline

Definition at line 209 of file odeUniversalJoint.I.

◆ get_param_lo_stop()

dReal OdeUniversalJoint::get_param_lo_stop ( int axis) const
inline

Definition at line 197 of file odeUniversalJoint.I.

◆ get_param_stop_CFM()

dReal OdeUniversalJoint::get_param_stop_CFM ( int axis) const
inline

Definition at line 293 of file odeUniversalJoint.I.

◆ get_param_stop_ERP()

dReal OdeUniversalJoint::get_param_stop_ERP ( int axis) const
inline

Definition at line 281 of file odeUniversalJoint.I.

◆ get_param_vel()

dReal OdeUniversalJoint::get_param_vel ( int axis) const
inline

Definition at line 221 of file odeUniversalJoint.I.

◆ get_type()

virtual TypeHandle OdeUniversalJoint::get_type ( ) const
inlinevirtual

Reimplemented from OdeJoint.

Definition at line 87 of file odeUniversalJoint.h.

◆ init_type()

static void OdeUniversalJoint::init_type ( )
inlinestatic

Definition at line 82 of file odeUniversalJoint.h.

◆ set_anchor() [1/2]

void OdeUniversalJoint::set_anchor ( const LVecBase3f & anchor)
inline

Definition at line 19 of file odeUniversalJoint.I.

◆ set_anchor() [2/2]

void OdeUniversalJoint::set_anchor ( dReal x,
dReal y,
dReal z )
inline

Definition at line 14 of file odeUniversalJoint.I.

◆ set_axis1() [1/2]

void OdeUniversalJoint::set_axis1 ( const LVecBase3f & axis)
inline

Definition at line 29 of file odeUniversalJoint.I.

◆ set_axis1() [2/2]

void OdeUniversalJoint::set_axis1 ( dReal x,
dReal y,
dReal z )
inline

Definition at line 24 of file odeUniversalJoint.I.

◆ set_axis2() [1/2]

void OdeUniversalJoint::set_axis2 ( const LVecBase3f & axis)
inline

Definition at line 39 of file odeUniversalJoint.I.

◆ set_axis2() [2/2]

void OdeUniversalJoint::set_axis2 ( dReal x,
dReal y,
dReal z )
inline

Definition at line 34 of file odeUniversalJoint.I.

◆ set_param_bounce()

void OdeUniversalJoint::set_param_bounce ( int axis,
dReal val )
inline

Definition at line 153 of file odeUniversalJoint.I.

◆ set_param_CFM()

void OdeUniversalJoint::set_param_CFM ( int axis,
dReal val )
inline

Definition at line 164 of file odeUniversalJoint.I.

◆ set_param_f_max()

void OdeUniversalJoint::set_param_f_max ( int axis,
dReal val )
inline

Definition at line 131 of file odeUniversalJoint.I.

◆ set_param_fudge_factor()

void OdeUniversalJoint::set_param_fudge_factor ( int axis,
dReal val )
inline

Definition at line 142 of file odeUniversalJoint.I.

◆ set_param_hi_stop()

void OdeUniversalJoint::set_param_hi_stop ( int axis,
dReal val )
inline

Definition at line 109 of file odeUniversalJoint.I.

◆ set_param_lo_stop()

void OdeUniversalJoint::set_param_lo_stop ( int axis,
dReal val )
inline

Definition at line 98 of file odeUniversalJoint.I.

◆ set_param_stop_CFM()

void OdeUniversalJoint::set_param_stop_CFM ( int axis,
dReal val )
inline

Definition at line 186 of file odeUniversalJoint.I.

◆ set_param_stop_ERP()

void OdeUniversalJoint::set_param_stop_ERP ( int axis,
dReal val )
inline

Definition at line 175 of file odeUniversalJoint.I.

◆ set_param_vel()

void OdeUniversalJoint::set_param_vel ( int axis,
dReal val )
inline

Definition at line 120 of file odeUniversalJoint.I.

Friends And Related Symbol Documentation

◆ OdeJoint

friend class OdeJoint
friend

Definition at line 31 of file odeUniversalJoint.h.


The documentation for this class was generated from the following files: