21 INLINE
bool BulletRotationalLimitMotor::
24 return _motor.isLimited();
32 INLINE
void BulletRotationalLimitMotor::
33 set_motor_enabled(
bool enabled) {
35 _motor.m_enableMotor = enabled;
43 INLINE
bool BulletRotationalLimitMotor::
44 get_motor_enabled()
const {
46 return _motor.m_enableMotor;
54 INLINE
void BulletRotationalLimitMotor::
55 set_low_limit(PN_stdfloat limit) {
57 _motor.m_loLimit = (btScalar)limit;
65 INLINE
void BulletRotationalLimitMotor::
66 set_high_limit(PN_stdfloat limit) {
68 _motor.m_hiLimit = (btScalar)limit;
76 INLINE
void BulletRotationalLimitMotor::
77 set_target_velocity(PN_stdfloat velocity) {
79 _motor.m_targetVelocity = (btScalar)velocity;
87 INLINE
void BulletRotationalLimitMotor::
88 set_max_motor_force(PN_stdfloat force) {
90 _motor.m_maxMotorForce = (btScalar)force;
98 INLINE
void BulletRotationalLimitMotor::
99 set_max_limit_force(PN_stdfloat force) {
101 _motor.m_maxLimitForce = (btScalar)force;
109 INLINE
void BulletRotationalLimitMotor::
110 set_damping(PN_stdfloat damping) {
112 _motor.m_damping = (btScalar)damping;
120 INLINE
void BulletRotationalLimitMotor::
121 set_softness(PN_stdfloat softness) {
123 _motor.m_limitSoftness = (btScalar)softness;
131 INLINE
void BulletRotationalLimitMotor::
132 set_bounce(PN_stdfloat bounce) {
134 _motor.m_bounce = (btScalar)bounce;
142 INLINE
void BulletRotationalLimitMotor::
143 set_normal_cfm(PN_stdfloat cfm) {
145 _motor.m_normalCFM = (btScalar)cfm;
153 INLINE
void BulletRotationalLimitMotor::
154 set_stop_cfm(PN_stdfloat cfm) {
156 _motor.m_stopCFM = (btScalar)cfm;
164 INLINE
void BulletRotationalLimitMotor::
165 set_stop_erp(PN_stdfloat erp) {
167 _motor.m_stopERP = (btScalar)erp;
181 return _motor.m_currentLimit;
189 INLINE PN_stdfloat BulletRotationalLimitMotor::
190 get_current_error()
const {
192 return (PN_stdfloat)_motor.m_currentLimitError;
200 INLINE PN_stdfloat BulletRotationalLimitMotor::
201 get_current_position()
const {
203 return (PN_stdfloat)_motor.m_currentPosition;
211 INLINE PN_stdfloat BulletRotationalLimitMotor::
212 get_accumulated_impulse()
const {
214 return (PN_stdfloat)_motor.m_accumulatedImpulse;
int get_current_limit() const
Retrieves the current value of angle: 0 = free, 1 = at low limit, 2 = at high limit.