Пример #1
0
 private bool DoesGravityMet(Rigidbody2D rb)
 {
     if (checkGravity)
     {
         return(NPNumberCompare.CompreNumbers(rb.gravityScale, gravityScale2D, gravityCompare));
     }
     return(true);
 }
Пример #2
0
 private bool DoesMassMet(Rigidbody2D rb)
 {
     if (checkMass)
     {
         return(NPNumberCompare.CompreNumbers(rb.mass, massCompareValue, massCompare));
     }
     return(true);
 }
Пример #3
0
 private bool DoesVelocityMagnitudeMet(Rigidbody2D rb)
 {
     if (checkVelocityMagnitude)
     {
         float mag = rb.velocity.magnitude;
         return(NPNumberCompare.CompreNumbers(mag, velocityMagValue, velocityMagCompare));
     }
     return(true);
 }
Пример #4
0
        private bool DoesAngVelocityMet(Rigidbody2D rb)
        {
            if (checkAngVelocityMagnitude)
            {
                return(NPNumberCompare.CompreNumbers(rb.angularVelocity, angVelocityMagValue, angVelocityMagCompare));
            }

            return(true);
        }
Пример #5
0
        private bool DoesAngVelocityMet(Rigidbody rb)
        {
            if (checkAngVelocityMagnitude)
            {
                float mag = rb.angularVelocity.magnitude;
                return(NPNumberCompare.CompreNumbers(mag, angVelocityMagValue, angVelocityMagCompare));
            }

            return(true);
        }