Logo Search packages:      
Sourcecode: blender version File versions  Download package

bool btGeneric6DofConstraint::isLimited ( int  limitIndex  )  [inline, inherited]

Test limit.

  • free means upper < lower,
  • locked means upper == lower
  • limited means upper > lower
  • limitIndex: first 3 are linear, next 3 are angular

Definition at line 461 of file btGeneric6DofConstraint.h.

References btRotationalLimitMotor::isLimited(), btGeneric6DofConstraint::m_angularLimits, and btGeneric6DofConstraint::m_linearLimits.

    {
      if(limitIndex<3)
      {
                  return m_linearLimits.isLimited(limitIndex);

      }
        return m_angularLimits[limitIndex-3].isLimited();
    }


Generated by  Doxygen 1.6.0   Back to index