home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / pup_idol.swf / scripts / Box2D / Common / b2Settings.as
Encoding:
Text File  |  2008-08-07  |  1.9 KB  |  62 lines

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