Panda3D
|
Descriptor class for distance joint. More...
#include "physxPulleyJointDesc.h"
Public Member Functions | |
float | get_distance () const |
bool | get_flag (PhysxPulleyJointFlag flag) const |
PhysxMotorDesc | get_motor () const |
LPoint3f | get_pulley (unsigned int idx) const |
float | get_ratio () const |
float | get_stiffness () const |
bool | is_valid () const |
Returns true if the descriptor is valid. | |
NxJointDesc * | ptr () const |
void | set_distance (float distance) |
Sets the rest length of the rope connecting the two objects. | |
void | set_flag (PhysxPulleyJointFlag flag, bool value) |
Sets or clears a single PulleyJointFlag flag. | |
void | set_motor (const PhysxMotorDesc &motor) |
Sets an optional joint motor. | |
void | set_pulley (unsigned int idx, const LPoint3f pos) |
Sets the suspension points of two bodies in world space. | |
void | set_ratio (float ration) |
Sets the transmission ratio. | |
void | set_stiffness (float stiffness) |
Sets how stiff the constraint is, between 0 and 1 (stiffest) | |
void | set_to_default () |
(re)sets the structure to the default. | |
Public Attributes | |
NxPulleyJointDesc | _desc |
Descriptor class for distance joint.
See PhysxPulleyJoint.
Definition at line 30 of file physxPulleyJointDesc.h.
bool PhysxPulleyJointDesc::is_valid | ( | ) | const [inline, virtual] |
Returns true if the descriptor is valid.
Implements PhysxJointDesc.
Definition at line 56 of file physxPulleyJointDesc.I.
void PhysxPulleyJointDesc::set_distance | ( | float | distance | ) |
Sets the rest length of the rope connecting the two objects.
Definition at line 26 of file physxPulleyJointDesc.cxx.
void PhysxPulleyJointDesc::set_flag | ( | PhysxPulleyJointFlag | flag, |
bool | value | ||
) |
Sets or clears a single PulleyJointFlag flag.
Definition at line 60 of file physxPulleyJointDesc.cxx.
void PhysxPulleyJointDesc::set_motor | ( | const PhysxMotorDesc & | motor | ) |
Sets an optional joint motor.
Definition at line 89 of file physxPulleyJointDesc.cxx.
void PhysxPulleyJointDesc::set_pulley | ( | unsigned int | idx, |
const LPoint3f | pos | ||
) |
Sets the suspension points of two bodies in world space.
Definition at line 77 of file physxPulleyJointDesc.cxx.
References PhysxManager::point3_to_nxVec3().
void PhysxPulleyJointDesc::set_ratio | ( | float | ration | ) |
Sets the transmission ratio.
Definition at line 49 of file physxPulleyJointDesc.cxx.
void PhysxPulleyJointDesc::set_stiffness | ( | float | stiffness | ) |
Sets how stiff the constraint is, between 0 and 1 (stiffest)
Definition at line 38 of file physxPulleyJointDesc.cxx.
void PhysxPulleyJointDesc::set_to_default | ( | ) | [inline, virtual] |
(re)sets the structure to the default.
Implements PhysxJointDesc.
Definition at line 44 of file physxPulleyJointDesc.I.
References PhysxJointDesc::set_name().