14#ifndef PHYSXJOINTDESC_H
15#define PHYSXJOINTDESC_H
28class EXPCL_PANDAPHYSX PhysxJointDesc :
public PhysxEnums {
31 virtual void set_to_default() = 0;
32 virtual bool is_valid()
const = 0;
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;
63 INLINE PhysxJointDesc();
64 INLINE ~PhysxJointDesc();
Actors are the main simulation objects.
This class exists just to provide scoping for the enums shared by PhysX classes.
void set_global_anchor(const LPoint3f &anchor)
Set the anchor using a world space point.
void set_solver_extrapolation_factor(float factor)
Set the extrapolation factor for solving joint constraints.
void set_local_normal(unsigned int idx, const LVector3f &normal)
Set the X axis of joint space, in actor[i]'s space, orthogonal to localAxis[i].
void set_local_anchor(unsigned int idx, const LPoint3f &anchor)
Set the attachment point of joint in actor[i]'s space.
void set_global_axis(const LVector3f &axis)
Set the local axis/normal using a world space axis.
void set_name(const char *name)
Sets a possible debug name.
void set_joint_flag(PhysxJointFlag flag, bool value)
Set or clear a single JointFlag.
void set_local_axis(unsigned int idx, const LVector3f &axis)
Set the Z axis of joint space, in actor[i]'s space.
void set_max_force(float force)
Set a possible debug name.
void set_actor(unsigned int idx, const PhysxActor &actor)
Set the two actors connected by the joint.
void set_max_torque(float torque)
Set the maximum angular force (torque) that the joint can withstand before breaking,...
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.