00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PHYSXJOINTDESC_H
00016 #define PHYSXJOINTDESC_H
00017
00018 #include "pandabase.h"
00019 #include "luse.h"
00020
00021 #include "physxEnums.h"
00022 #include "physx_includes.h"
00023
00024 class PhysxActor;
00025
00026
00027
00028
00029
00030 class EXPCL_PANDAPHYSX PhysxJointDesc : public PhysxEnums {
00031
00032 PUBLISHED:
00033 virtual void set_to_default() = 0;
00034 virtual bool is_valid() const = 0;
00035
00036 void set_name(const char *name);
00037 void set_joint_flag(PhysxJointFlag flag, bool value);
00038 void set_max_force(float force);
00039 void set_max_torque(float torque);
00040 void set_solver_extrapolation_factor(float factor);
00041 void set_global_axis(const LVector3f &axis);
00042 void set_global_anchor(const LPoint3f &anchor);
00043 void set_local_normal(unsigned int idx, const LVector3f &normal);
00044 void set_local_axis(unsigned int idx, const LVector3f &axis);
00045 void set_local_anchor(unsigned int idx, const LPoint3f &anchor);
00046 void set_actor(unsigned int idx, const PhysxActor &actor);
00047
00048 const char *get_name() const;
00049 bool get_joint_flag(PhysxJointFlag flag) const;
00050 float get_max_force() const;
00051 float get_max_torque() const;
00052 float get_solver_extrapolation_factor() const;
00053 LVector3f get_local_normal(unsigned int idx) const;
00054 LVector3f get_local_axis(unsigned int idx) const;
00055 LPoint3f get_local_anchor(unsigned int idx) const;
00056 PhysxActor *get_actor(unsigned int idx) const;
00057
00058 public:
00059 virtual NxJointDesc *ptr() const = 0;
00060
00061 private:
00062 string _name;
00063
00064 protected:
00065 INLINE PhysxJointDesc();
00066 INLINE ~PhysxJointDesc();
00067 };
00068
00069 #include "physxJointDesc.I"
00070
00071 #endif // PHYSXJOINTDESC_H