14#ifndef PHYSXSPHERICALJOINTDESC_H
15#define PHYSXSPHERICALJOINTDESC_H
28class EXPCL_PANDAPHYSX PhysxSphericalJointDesc :
public PhysxJointDesc {
31 INLINE PhysxSphericalJointDesc();
32 INLINE ~PhysxSphericalJointDesc();
38 void set_flag(PhysxSphericalJointFlag flag,
bool value);
48 float get_projection_distance()
const;
49 bool get_flag(PhysxSphericalJointFlag flag)
const;
50 LVector3f get_swing_axis()
const;
57 PhysxProjectionMode get_projection_mode()
const;
60 NxJointDesc *ptr()
const {
return (NxJointDesc *)&_desc; };
61 NxSphericalJointDesc _desc;
void set_twist_limit_low(const PhysxJointLimitDesc &low)
Limits rotation around twist axis.
void set_swing_limit(const PhysxJointLimitDesc &limit)
Limits swing of twist axis.
void set_projection_distance(float distance)
Set the distance above which to project joint.
void set_projection_mode(PhysxProjectionMode mode)
Use this to enable joint projection.
void set_to_default()
(re)sets the structure to the default.
void set_joint_spring(const PhysxSpringDesc &spring)
Sets a spring that lets the joint get pulled apart.
void set_swing_spring(const PhysxSpringDesc &spring)
Sets a spring that works against swinging.
void set_twist_spring(const PhysxSpringDesc &spring)
Sets a spring that works against twisting.
bool is_valid() const
Returns true if the descriptor is valid.
void set_swing_axis(const LVector3f &axis)
Set the swing limit axis defined in the joint space of actor 0.
void set_twist_limit_high(const PhysxJointLimitDesc &high)
Limits rotation around twist axis.
void set_flag(PhysxSphericalJointFlag flag, bool value)
Sets or clears a single SphericalJointFlag flag.
PhysxJointLimitDesc get_swing_limit() const
Limits swing of twist axis.
Describes a joint spring.
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.