40 void purge_limit_planes();
42 void set_name(
const char *name);
43 void set_global_anchor(
const LPoint3f &anchor);
44 void set_global_axis(
const LVector3f &axis);
45 void set_breakable(
float maxForce,
float maxTorque);
46 void set_solver_extrapolation_factor(
float factor);
47 void set_use_acceleration_spring(
bool value);
48 void set_limit_point(
const LPoint3f &pos,
bool isOnActor2=
true);
49 void add_limit_plane(
const LVector3f &normal,
const LPoint3f &pointInPlane,
float restitution=0.0f);
51 const char *get_name()
const;
52 LPoint3f get_global_anchor()
const;
53 LVector3f get_global_axis()
const;
54 float get_solver_extrapolation_factor()
const;
55 bool get_use_acceleration_spring()
const;
57 INLINE
void ls()
const;
58 INLINE
void ls(std::ostream &out,
int indent_level=0)
const;
61 static PhysxJoint *factory(NxJointType shapeType);
63 virtual NxJoint *ptr()
const = 0;
65 virtual void link(NxJoint *shapePtr) = 0;
66 virtual void unlink() = 0;
78 static void init_type() {
79 PhysxObject::init_type();
81 PhysxObject::get_class_type());
84 return get_class_type();
88 return get_class_type();
97 #endif // PHYSXJOINT_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Abstract base class for the different types of joints.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A scene is a collection of bodies, constraints, and effectors which can interact.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class exists just to provide scoping for the enums shared by PhysX classes.
Actors are the main simulation objects.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.