14#ifndef PHYSXPULLEYJOINTDESC_H
15#define PHYSXPULLEYJOINTDESC_H
27class EXPCL_PANDAPHYSX PhysxPulleyJointDesc :
public PhysxJointDesc {
30 INLINE PhysxPulleyJointDesc();
31 INLINE ~PhysxPulleyJointDesc();
39 void set_pulley(
unsigned int idx,
const LPoint3f pos);
41 void set_flag(PhysxPulleyJointFlag flag,
bool value);
43 float get_distance()
const;
44 float get_stiffness()
const;
45 float get_ratio()
const;
46 bool get_flag(PhysxPulleyJointFlag flag)
const;
47 LPoint3f get_pulley(
unsigned int idx)
const;
51 NxJointDesc *ptr()
const {
return (NxJointDesc *)&_desc; };
52 NxPulleyJointDesc _desc;
void set_distance(float distance)
Sets the rest length of the rope connecting the two objects.
void set_to_default()
(re)sets the structure to the default.
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_flag(PhysxPulleyJointFlag flag, bool value)
Sets or clears a single PulleyJointFlag flag.
bool is_valid() const
Returns true if the descriptor is valid.
void set_motor(const PhysxMotorDesc &motor)
Sets an optional joint motor.
void set_stiffness(float stiffness)
Sets how stiff the constraint is, between 0 and 1 (stiffest)
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.