15 #ifndef PHYSXD6JOINTDESC_H
16 #define PHYSXD6JOINTDESC_H
18 #include "pandabase.h"
21 #include "physxJointDesc.h"
22 #include "physx_includes.h"
35 INLINE ~PhysxD6JointDesc();
37 INLINE
void set_to_default();
38 INLINE
bool is_valid()
const;
40 void set_flag(PhysxD6JointFlag flag,
bool value);
41 void set_projection_distance(
float distance);
42 void set_projection_angle(
float angle);
43 void set_gear_ratio(
float ratio);
44 void set_drive_position(
const LPoint3f &pos);
45 void set_drive_linear_velocity(
const LVector3f &v);
46 void set_drive_angular_velocity(
const LVector3f &v);
48 void set_projection_mode(PhysxProjectionMode mode);
49 void set_x_motion(PhysxD6JointMotion xMotion);
50 void set_y_motion(PhysxD6JointMotion yMotion);
51 void set_z_motion(PhysxD6JointMotion zMotion);
52 void set_swing1_motion(PhysxD6JointMotion xMotion);
53 void set_swing2_motion(PhysxD6JointMotion yMotion);
54 void set_twist_motion(PhysxD6JointMotion zMotion);
67 bool get_flag(PhysxD6JointFlag flag)
const;
68 float get_projection_distance()
const;
69 float get_projection_angle()
const;
70 float get_gear_ratio()
const;
72 LVector3f get_drive_linear_velocity()
const;
73 LVector3f get_drive_angular_velocity()
const;
75 PhysxProjectionMode get_projection_mode()
const;
76 PhysxD6JointMotion get_x_motion()
const;
77 PhysxD6JointMotion get_y_motion()
const;
78 PhysxD6JointMotion get_z_motion()
const;
79 PhysxD6JointMotion get_swing1_motion()
const;
80 PhysxD6JointMotion get_swing2_motion()
const;
81 PhysxD6JointMotion get_twist_motion()
const;
95 NxJointDesc *ptr()
const {
return (NxJointDesc *)&_desc; };
99 #include "physxD6JointDesc.I"
101 #endif // PHYSXD6JOINTDESC_H
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Abstract base class for joint descriptors.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Used to describe drive properties for a PhysxD6Joint.
This is the base quaternion class.