14 #ifndef PHYSXD6JOINTDESC_H 15 #define PHYSXD6JOINTDESC_H 35 INLINE
void set_to_default();
36 INLINE
bool is_valid()
const;
38 void set_flag(PhysxD6JointFlag flag,
bool value);
39 void set_projection_distance(
float distance);
40 void set_projection_angle(
float angle);
41 void set_gear_ratio(
float ratio);
42 void set_drive_position(
const LPoint3f &pos);
43 void set_drive_linear_velocity(
const LVector3f &v);
44 void set_drive_angular_velocity(
const LVector3f &v);
45 void set_drive_orientation(
const LQuaternionf &quat);
46 void set_projection_mode(PhysxProjectionMode mode);
47 void set_x_motion(PhysxD6JointMotion xMotion);
48 void set_y_motion(PhysxD6JointMotion yMotion);
49 void set_z_motion(PhysxD6JointMotion zMotion);
50 void set_swing1_motion(PhysxD6JointMotion xMotion);
51 void set_swing2_motion(PhysxD6JointMotion yMotion);
52 void set_twist_motion(PhysxD6JointMotion zMotion);
65 bool get_flag(PhysxD6JointFlag flag)
const;
66 float get_projection_distance()
const;
67 float get_projection_angle()
const;
68 float get_gear_ratio()
const;
69 LPoint3f get_drive_position()
const;
70 LVector3f get_drive_linear_velocity()
const;
71 LVector3f get_drive_angular_velocity()
const;
72 LQuaternionf get_drive_orientation()
const;
73 PhysxProjectionMode get_projection_mode()
const;
74 PhysxD6JointMotion get_x_motion()
const;
75 PhysxD6JointMotion get_y_motion()
const;
76 PhysxD6JointMotion get_z_motion()
const;
77 PhysxD6JointMotion get_swing1_motion()
const;
78 PhysxD6JointMotion get_swing2_motion()
const;
79 PhysxD6JointMotion get_twist_motion()
const;
93 NxJointDesc *ptr()
const {
return (NxJointDesc *)&_desc; };
99 #endif // PHYSXD6JOINTDESC_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Abstract base class for joint descriptors.
Used to describe drive properties for a PhysxD6Joint.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.