15 #ifndef PHYSXJOINTDESC_H
16 #define PHYSXJOINTDESC_H
18 #include "pandabase.h"
21 #include "physxEnums.h"
22 #include "physx_includes.h"
33 virtual void set_to_default() = 0;
34 virtual bool is_valid()
const = 0;
36 void set_name(
const char *name);
37 void set_joint_flag(PhysxJointFlag flag,
bool value);
38 void set_max_force(
float force);
39 void set_max_torque(
float torque);
40 void set_solver_extrapolation_factor(
float factor);
41 void set_global_axis(
const LVector3f &axis);
42 void set_global_anchor(
const LPoint3f &anchor);
43 void set_local_normal(
unsigned int idx,
const LVector3f &normal);
44 void set_local_axis(
unsigned int idx,
const LVector3f &axis);
45 void set_local_anchor(
unsigned int idx,
const LPoint3f &anchor);
46 void set_actor(
unsigned int idx,
const PhysxActor &actor);
48 const char *get_name()
const;
49 bool get_joint_flag(PhysxJointFlag flag)
const;
50 float get_max_force()
const;
51 float get_max_torque()
const;
52 float get_solver_extrapolation_factor()
const;
53 LVector3f get_local_normal(
unsigned int idx)
const;
54 LVector3f get_local_axis(
unsigned int idx)
const;
55 LPoint3f get_local_anchor(
unsigned int idx)
const;
59 virtual NxJointDesc *ptr()
const = 0;
66 INLINE ~PhysxJointDesc();
69 #include "physxJointDesc.I"
71 #endif // PHYSXJOINTDESC_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 ...
This class exists just to provide scoping for the enums shared by PhysX classes.
Actors are the main simulation objects.