mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 17:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,56 @@
|
||||
package Box2D.Collision
|
||||
{
|
||||
import Box2D.Common.*;
|
||||
import Box2D.Common.Math.*;
|
||||
|
||||
public class b2Manifold
|
||||
{
|
||||
|
||||
public var points:Array;
|
||||
|
||||
public var normal:b2Vec2;
|
||||
|
||||
public var pointCount:int = 0;
|
||||
|
||||
public function b2Manifold()
|
||||
{
|
||||
var _loc1_:int = 0;
|
||||
super();
|
||||
points = new Array(2);
|
||||
_loc1_ = 0;
|
||||
while(_loc1_ < 2)
|
||||
{
|
||||
points[_loc1_] = new b2ManifoldPoint();
|
||||
_loc1_++;
|
||||
}
|
||||
normal = new b2Vec2();
|
||||
}
|
||||
|
||||
public function Reset() : void
|
||||
{
|
||||
var _loc1_:int = 0;
|
||||
_loc1_ = 0;
|
||||
while(_loc1_ < 2)
|
||||
{
|
||||
(points[_loc1_] as b2ManifoldPoint).Reset();
|
||||
_loc1_++;
|
||||
}
|
||||
normal.SetZero();
|
||||
pointCount = 0;
|
||||
}
|
||||
|
||||
public function Set(param1:b2Manifold) : void
|
||||
{
|
||||
var _loc2_:int = 0;
|
||||
pointCount = param1.pointCount;
|
||||
_loc2_ = 0;
|
||||
while(_loc2_ < 2)
|
||||
{
|
||||
(points[_loc2_] as b2ManifoldPoint).Set(param1.points[_loc2_]);
|
||||
_loc2_++;
|
||||
}
|
||||
normal.SetV(param1.normal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user