21 BulletRotationalLimitMotor::
22 BulletRotationalLimitMotor(btRotationalLimitMotor &motor)
30 BulletRotationalLimitMotor::
32 : _motor(copy._motor) {
39 bool BulletRotationalLimitMotor::
43 return _motor.isLimited();
49 void BulletRotationalLimitMotor::
50 set_motor_enabled(
bool enabled) {
53 _motor.m_enableMotor = enabled;
59 bool BulletRotationalLimitMotor::
60 get_motor_enabled()
const {
63 return _motor.m_enableMotor;
68 void BulletRotationalLimitMotor::
69 set_low_limit(PN_stdfloat limit) {
72 _motor.m_loLimit = (btScalar)limit;
78 void BulletRotationalLimitMotor::
79 set_high_limit(PN_stdfloat limit) {
82 _motor.m_hiLimit = (btScalar)limit;
88 void BulletRotationalLimitMotor::
89 set_target_velocity(PN_stdfloat velocity) {
92 _motor.m_targetVelocity = (btScalar)velocity;
98 void BulletRotationalLimitMotor::
99 set_max_motor_force(PN_stdfloat force) {
102 _motor.m_maxMotorForce = (btScalar)force;
108 void BulletRotationalLimitMotor::
109 set_max_limit_force(PN_stdfloat force) {
112 _motor.m_maxLimitForce = (btScalar)force;
118 void BulletRotationalLimitMotor::
119 set_damping(PN_stdfloat damping) {
122 _motor.m_damping = (btScalar)damping;
128 void BulletRotationalLimitMotor::
129 set_softness(PN_stdfloat softness) {
132 _motor.m_limitSoftness = (btScalar)softness;
138 void BulletRotationalLimitMotor::
139 set_bounce(PN_stdfloat bounce) {
142 _motor.m_bounce = (btScalar)bounce;
148 void BulletRotationalLimitMotor::
149 set_normal_cfm(PN_stdfloat cfm) {
152 _motor.m_normalCFM = (btScalar)cfm;
158 void BulletRotationalLimitMotor::
159 set_stop_cfm(PN_stdfloat cfm) {
162 _motor.m_stopCFM = (btScalar)cfm;
168 void BulletRotationalLimitMotor::
169 set_stop_erp(PN_stdfloat erp) {
172 _motor.m_stopERP = (btScalar)erp;
179 int BulletRotationalLimitMotor::
180 get_current_limit()
const {
183 return _motor.m_currentLimit;
189 PN_stdfloat BulletRotationalLimitMotor::
190 get_current_error()
const {
193 return (PN_stdfloat)_motor.m_currentLimitError;
199 PN_stdfloat BulletRotationalLimitMotor::
200 get_current_position()
const {
203 return (PN_stdfloat)_motor.m_currentPosition;
209 PN_stdfloat BulletRotationalLimitMotor::
210 get_accumulated_impulse()
const {
213 return (PN_stdfloat)_motor.m_accumulatedImpulse;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Rotation Limit structure for generic joints.
Similar to MutexHolder, but for a light mutex.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.