Home
last modified time | relevance | path

Searched refs:m_constraintError (Results 1 – 9 of 9) sorted by relevance

/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/ConstraintSolver/
DbtHingeConstraint.cpp448 info->m_constraintError[i*skip]=0.f; in getInfo2Internal()
491 info->m_constraintError[i * skip] = k * (pivotBInW[i] - pivotAInW[i]); in getInfo2Internal()
541 info->m_constraintError[s3] = k * u.dot(p); in getInfo2Internal()
542 info->m_constraintError[s4] = k * u.dot(q); in getInfo2Internal()
582 info->m_constraintError[srow] = btScalar(0.0f); in getInfo2Internal()
591 info->m_constraintError[srow] += mot_fact * m_motorTargetVelocity * m_referenceSign; in getInfo2Internal()
598 info->m_constraintError[srow] += k * limit_err; in getInfo2Internal()
636 if(newc > info->m_constraintError[srow]) in getInfo2Internal()
638 info->m_constraintError[srow] = newc; in getInfo2Internal()
647 if(newc < info->m_constraintError[srow]) in getInfo2Internal()
[all …]
DbtSliderConstraint.cpp355 info->m_constraintError[0] = k * u.dot(p); in getInfo2NonVirtual()
356 info->m_constraintError[s] = k * u.dot(q); in getInfo2NonVirtual()
455 info->m_constraintError[s2] = rhs; in getInfo2NonVirtual()
457 info->m_constraintError[s3] = rhs; in getInfo2NonVirtual()
529 info->m_constraintError[srow] = 0.; in getInfo2NonVirtual()
541 info->m_constraintError[srow] -= signFact * mot_fact * getTargetLinMotorVelocity(); in getInfo2NonVirtual()
548 info->m_constraintError[srow] += k * limit_err; in getInfo2NonVirtual()
582 if (newc > info->m_constraintError[srow]) in getInfo2NonVirtual()
584 info->m_constraintError[srow] = newc; in getInfo2NonVirtual()
593 if(newc < info->m_constraintError[srow]) in getInfo2NonVirtual()
[all …]
DbtGeneric6DofSpring2Constraint.cpp664 …info->m_constraintError[srow] = info->fps * limot->m_stopERP * limot->m_currentLimitError * (rotat… in get_limit_motor_info2()
666 if (info->m_constraintError[srow]-vel*limot->m_stopERP > 0) { in get_limit_motor_info2()
668 if (bounceerror > info->m_constraintError[srow]) info->m_constraintError[srow] = bounceerror; in get_limit_motor_info2()
671 if (info->m_constraintError[srow]-vel*limot->m_stopERP < 0) { in get_limit_motor_info2()
673 if (bounceerror < info->m_constraintError[srow]) info->m_constraintError[srow] = bounceerror; in get_limit_motor_info2()
683 …info->m_constraintError[srow] = info->fps * limot->m_stopERP * limot->m_currentLimitErrorHi * (rot… in get_limit_motor_info2()
685 if (info->m_constraintError[srow]-vel*limot->m_stopERP < 0) { in get_limit_motor_info2()
687 if (bounceerror < info->m_constraintError[srow]) info->m_constraintError[srow] = bounceerror; in get_limit_motor_info2()
690 if (info->m_constraintError[srow]-vel*limot->m_stopERP > 0) { in get_limit_motor_info2()
692 if (bounceerror > info->m_constraintError[srow]) info->m_constraintError[srow] = bounceerror; in get_limit_motor_info2()
[all …]
DbtGeneric6DofConstraint.cpp844 info->m_constraintError[srow] = btScalar(0.f); in get_limit_motor_info2()
857 info->m_constraintError[srow] += mot_fact * limot->m_targetVelocity; in get_limit_motor_info2()
867 info->m_constraintError[srow] += k * limot->m_currentLimitError; in get_limit_motor_info2()
871 info->m_constraintError[srow] += -k * limot->m_currentLimitError; in get_limit_motor_info2()
917 if (newc > info->m_constraintError[srow]) in get_limit_motor_info2()
918 info->m_constraintError[srow] = newc; in get_limit_motor_info2()
926 if (newc < info->m_constraintError[srow]) in get_limit_motor_info2()
927 info->m_constraintError[srow] = newc; in get_limit_motor_info2()
DbtConeTwistConstraint.cpp156 …info->m_constraintError[j*info->rowskip] = k * (a2[j] + transB.getOrigin()[j] - a1[j] - transA.get… in getInfo2NonVirtual()
191 info->m_constraintError[srow] = fact * m_swingAxis.dot(p); in getInfo2NonVirtual()
192 info->m_constraintError[srow1] = fact * m_swingAxis.dot(q); in getInfo2NonVirtual()
210 info->m_constraintError[srow] = k * m_swingCorrection; in getInfo2NonVirtual()
233 info->m_constraintError[srow] = k * m_twistCorrection; in getInfo2NonVirtual()
DbtPoint2PointConstraint.cpp141 …info->m_constraintError[j*info->rowskip] = k * (a2[j] + body1_trans.getOrigin()[j] - a1[j] - body0… in getInfo2NonVirtual()
DbtTypedConstraint.h142 btScalar *m_constraintError,*cfm; in ATTRIBUTE_ALIGNED16() member
DbtSequentialImpulseConstraintSolver.cpp1406 info2.m_constraintError = &currentConstraintRow->m_rhs; in solveGroupCacheFriendlySetup()
/external/libgdx/extensions/gdx-bullet/jni/swig-src/dynamics/
Ddynamics_wrap.cpp5635 if (arg1) (arg1)->m_constraintError = arg2; in Java_com_badlogic_gdx_physics_bullet_dynamics_DynamicsJNI_btTypedConstraint_1btConstraintInfo2_1constraintError_1set()
5648 result = (btScalar *) ((arg1)->m_constraintError); in Java_com_badlogic_gdx_physics_bullet_dynamics_DynamicsJNI_btTypedConstraint_1btConstraintInfo2_1constraintError_1get()