home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / pup_idol.swf / scripts / Box2D / Dynamics / Contacts / b2ContactConstraint.as < prev    next >
Encoding:
Text File  |  2008-08-07  |  970 b   |  42 lines

  1. package Box2D.Dynamics.Contacts
  2. {
  3.    import Box2D.Collision.b2Manifold;
  4.    import Box2D.Common.Math.b2Vec2;
  5.    import Box2D.Common.b2Settings;
  6.    import Box2D.Dynamics.b2Body;
  7.    
  8.    public class b2ContactConstraint
  9.    {
  10.        
  11.       
  12.       public var points:Array;
  13.       
  14.       public var normal:b2Vec2;
  15.       
  16.       public var restitution:Number;
  17.       
  18.       public var body1:b2Body;
  19.       
  20.       public var manifold:b2Manifold;
  21.       
  22.       public var body2:b2Body;
  23.       
  24.       public var friction:Number;
  25.       
  26.       public var pointCount:int;
  27.       
  28.       public function b2ContactConstraint()
  29.       {
  30.          normal = new b2Vec2();
  31.          super();
  32.          points = new Array(b2Settings.b2_maxManifoldPoints);
  33.          var _loc1_:int = 0;
  34.          while(_loc1_ < b2Settings.b2_maxManifoldPoints)
  35.          {
  36.             points[_loc1_] = new b2ContactConstraintPoint();
  37.             _loc1_++;
  38.          }
  39.       }
  40.    }
  41. }
  42.