15 #include "physxRevoluteJointDesc.h"
16 #include "physxSpringDesc.h"
17 #include "physxMotorDesc.h"
18 #include "physxJointLimitDesc.h"
29 _desc.projectionDistance = distance;
40 _desc.projectionAngle = angle;
51 _desc.spring = spring._desc;
60 set_flag(PhysxRevoluteJointFlag flag,
bool value) {
66 _desc.flags &= ~(flag);
79 _desc.projectionMode = (NxJointProjectionMode)mode;
90 _desc.motor = motor._desc;
102 _desc.limit.low = low._desc;
114 _desc.limit.high = high._desc;
126 return _desc.projectionDistance;
138 return _desc.projectionAngle;
150 value._desc = _desc.spring;
159 bool PhysxRevoluteJointDesc::
160 get_flag(PhysxRevoluteJointFlag flag)
const {
162 return (_desc.flags & flag) ?
true :
false;
170 PhysxEnums::PhysxProjectionMode PhysxRevoluteJointDesc::
171 get_projection_mode()
const {
173 return (PhysxProjectionMode)_desc.projectionMode;
185 value._desc = _desc.motor;
195 get_limit_low()
const {
198 value._desc = _desc.limit.low;
208 get_limit_high()
const {
211 value._desc = _desc.limit.high;
void set_limit_low(const PhysxJointLimitDesc &low)
Sets optional limits for the angular motion of the joint.
void set_spring(const PhysxSpringDesc &spring)
Sets an aptional spring.
PhysxMotorDesc get_motor() const
Sets an optional joint motor.
void set_motor(const PhysxMotorDesc &motor)
Sets an optional joint motor.
Describes a joint spring.
float get_projection_angle() const
Return the angle beyond which the joint is projected.
float get_projection_distance() const
Return the distance beyond which the joint is projected.
void set_projection_distance(float distance)
Sets the distance beyond which the joint is projected.
void set_flag(PhysxRevoluteJointFlag flag, bool value)
Sets or clears a single RevoluteJointFlag flag.
void set_projection_angle(float angle)
Sets 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_projection_mode(PhysxProjectionMode mode)
Use this to enable joint projection.