home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / Beez.swf / scripts / Box2D / Dynamics / Contacts / b2ContactConstraint.as < prev    next >
Encoding:
Text File  |  2008-09-03  |  925 b   |  40 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.          for(var i:int = 0; i < b2Settings.b2_maxManifoldPoints; i++)
  34.          {
  35.             points[i] = new b2ContactConstraintPoint();
  36.          }
  37.       }
  38.    }
  39. }
  40.