Пример #1
0
        public bool TranslationalLimitMotor(bool enable, float targetVelocity, float maxMotorForce)
        {
            bool  ret   = false;
            float onOff = enable ? ConfigurationParameters.numericTrue : ConfigurationParameters.numericFalse;

            if (m_enabled)
            {
                ret = BulletSimAPI.TranslationalLimitMotor2(m_constraint.ptr, onOff, targetVelocity, maxMotorForce);
            }
            return(ret);
        }