home *** CD-ROM | disk | FTP | other *** search
- package Box2D.Collision
- {
- import Box2D.Common.Math.b2Vec2;
-
- public class b2ManifoldPoint
- {
-
-
- public var separation:Number;
-
- public var localPoint2:b2Vec2;
-
- public var normalImpulse:Number;
-
- public var tangentImpulse:Number;
-
- public var localPoint1:b2Vec2;
-
- public var id:b2ContactID;
-
- public function b2ManifoldPoint()
- {
- localPoint1 = new b2Vec2();
- localPoint2 = new b2Vec2();
- id = new b2ContactID();
- super();
- }
-
- public function Set(m:b2ManifoldPoint) : void
- {
- localPoint1.SetV(m.localPoint1);
- localPoint2.SetV(m.localPoint2);
- separation = m.separation;
- normalImpulse = m.normalImpulse;
- tangentImpulse = m.tangentImpulse;
- id.key = m.id.key;
- }
-
- public function Reset() : void
- {
- localPoint1.SetZero();
- localPoint2.SetZero();
- separation = 0;
- normalImpulse = 0;
- tangentImpulse = 0;
- id.key = 0;
- }
- }
- }
-