25 _desc.projectionDistance = distance;
34 _desc.projectionAngle = angle;
43 _desc.spring = spring._desc;
50set_flag(PhysxRevoluteJointFlag flag,
bool value) {
56 _desc.flags &= ~(flag);
66 _desc.projectionMode = (NxJointProjectionMode)mode;
75 _desc.motor = motor._desc;
84 _desc.limit.low = low._desc;
93 _desc.limit.high = high._desc;
102 return _desc.projectionDistance;
111 return _desc.projectionAngle;
121 value._desc = _desc.spring;
128bool PhysxRevoluteJointDesc::
129get_flag(PhysxRevoluteJointFlag flag)
const {
131 return (_desc.flags & flag) ? true :
false;
137PhysxEnums::PhysxProjectionMode PhysxRevoluteJointDesc::
138get_projection_mode()
const {
140 return (PhysxProjectionMode)_desc.projectionMode;
150 value._desc = _desc.motor;
158get_limit_low()
const {
161 value._desc = _desc.limit.low;
169get_limit_high()
const {
172 value._desc = _desc.limit.high;
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.
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.