14 #ifndef PHYSXJOINTDESC_H
15 #define PHYSXJOINTDESC_H
31 virtual void set_to_default() = 0;
32 virtual bool is_valid()
const = 0;
34 void set_name(
const char *name);
35 void set_joint_flag(PhysxJointFlag flag,
bool value);
36 void set_max_force(
float force);
37 void set_max_torque(
float torque);
38 void set_solver_extrapolation_factor(
float factor);
39 void set_global_axis(
const LVector3f &axis);
40 void set_global_anchor(
const LPoint3f &anchor);
41 void set_local_normal(
unsigned int idx,
const LVector3f &normal);
42 void set_local_axis(
unsigned int idx,
const LVector3f &axis);
43 void set_local_anchor(
unsigned int idx,
const LPoint3f &anchor);
44 void set_actor(
unsigned int idx,
const PhysxActor &actor);
46 const char *get_name()
const;
47 bool get_joint_flag(PhysxJointFlag flag)
const;
48 float get_max_force()
const;
49 float get_max_torque()
const;
50 float get_solver_extrapolation_factor()
const;
51 LVector3f get_local_normal(
unsigned int idx)
const;
52 LVector3f get_local_axis(
unsigned int idx)
const;
53 LPoint3f get_local_anchor(
unsigned int idx)
const;
57 virtual NxJointDesc *ptr()
const = 0;
Actors are the main simulation objects.
This class exists just to provide scoping for the enums shared by PhysX classes.
Abstract base class for joint descriptors.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.