home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / Beez.swf / scripts / Box2D / Common / b2Settings.as < prev   
Encoding:
Text File  |  2008-09-03  |  1.9 KB  |  66 lines

  1. package Box2D.Common
  2. {
  3.    import Box2D.Common.Math.b2Vec2;
  4.    
  5.    public class b2Settings
  6.    {
  7.       
  8.       public static const b2_angularSleepTolerance:Number = 2 / 180;
  9.       
  10.       public static const b2_linearSleepTolerance:Number = 0.01;
  11.       
  12.       public static const b2_linearSlop:Number = 0.005;
  13.       
  14.       public static const b2_pi:Number = Math.PI;
  15.       
  16.       public static const b2_angularSlop:Number = 2 / 180 * b2_pi;
  17.       
  18.       public static const b2_maxProxies:int = 512;
  19.       
  20.       public static const b2_maxPolygonVertices:int = 8;
  21.       
  22.       public static const b2_velocityThreshold:Number = 1;
  23.       
  24.       public static const b2_contactBaumgarte:Number = 0.2;
  25.       
  26.       public static const b2_maxPairs:int = 8 * b2_maxProxies;
  27.       
  28.       public static const b2_maxTOIContactsPerIsland:int = 32;
  29.       
  30.       public static const b2_timeToSleep:Number = 0.5;
  31.       
  32.       public static const b2_maxManifoldPoints:int = 2;
  33.       
  34.       public static const b2_maxAngularVelocity:Number = 250;
  35.       
  36.       public static const b2_maxAngularVelocitySquared:Number = b2_maxAngularVelocity * b2_maxAngularVelocity;
  37.       
  38.       public static const b2_maxAngularCorrection:Number = 8 / 180 * b2_pi;
  39.       
  40.       public static const USHRT_MAX:int = 65535;
  41.       
  42.       public static const b2_maxLinearVelocity:Number = 200;
  43.       
  44.       public static const b2_maxLinearCorrection:Number = 0.2;
  45.       
  46.       public static const b2_toiSlop:Number = 8 * b2_linearSlop;
  47.       
  48.       public static const b2_maxLinearVelocitySquared:Number = b2_maxLinearVelocity * b2_maxLinearVelocity;
  49.        
  50.       
  51.       public function b2Settings()
  52.       {
  53.          super();
  54.       }
  55.       
  56.       public static function b2Assert(a:Boolean) : void
  57.       {
  58.          var nullVec:b2Vec2 = null;
  59.          if(!a)
  60.          {
  61.             ++nullVec.x;
  62.          }
  63.       }
  64.    }
  65. }
  66.