14#ifndef PHYSXREVOLUTEJOINTDESC_H
15#define PHYSXREVOLUTEJOINTDESC_H
29class EXPCL_PANDAPHYSX PhysxRevoluteJointDesc :
public PhysxJointDesc {
32 INLINE PhysxRevoluteJointDesc();
33 INLINE ~PhysxRevoluteJointDesc();
41 void set_flag(PhysxRevoluteJointFlag flag,
bool value);
49 bool get_flag(PhysxRevoluteJointFlag flag)
const;
54 PhysxProjectionMode get_projection_mode()
const;
57 NxJointDesc *ptr()
const {
return (NxJointDesc *)&_desc; };
58 NxRevoluteJointDesc _desc;
float get_projection_angle() const
Return the angle beyond which the joint is projected.
void set_limit_high(const PhysxJointLimitDesc &high)
Sets optional limits for the angular motion of the joint.
void set_motor(const PhysxMotorDesc &motor)
Sets an optional joint motor.
void set_spring(const PhysxSpringDesc &spring)
Sets an aptional spring.
void set_limit_low(const PhysxJointLimitDesc &low)
Sets optional limits for the angular motion of the joint.
float get_projection_distance() const
Return the distance beyond which the joint is projected.
void set_to_default()
(re)sets the structure to the default.
bool is_valid() const
Returns true if the descriptor is valid.
PhysxMotorDesc get_motor() const
Sets an optional joint motor.
void set_projection_angle(float angle)
Sets the angle beyond which the joint is projected.
void set_projection_mode(PhysxProjectionMode mode)
Use this to enable joint projection.
void set_flag(PhysxRevoluteJointFlag flag, bool value)
Sets or clears a single RevoluteJointFlag flag.
void set_projection_distance(float distance)
Sets the distance beyond which the joint is projected.
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.