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
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,31 @@
|
||||
package game.skeeball
|
||||
{
|
||||
import Box2D.Collision.Shapes.b2Shape;
|
||||
import Box2D.Common.Math.b2Vec2;
|
||||
import Box2D.Dynamics.Contacts.b2ContactResult;
|
||||
import Box2D.Dynamics.b2ContactListener;
|
||||
|
||||
public class Skeeball_ContactListener extends b2ContactListener
|
||||
{
|
||||
|
||||
public var contactStack:Array = [];
|
||||
|
||||
public function Skeeball_ContactListener()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
override public function Result(param1:b2ContactResult) : void
|
||||
{
|
||||
var _loc2_:b2Shape = param1.shape1;
|
||||
var _loc3_:b2Shape = param1.shape2;
|
||||
var _loc4_:Number = param1.normalImpulse;
|
||||
var _loc5_:b2Vec2 = param1.position;
|
||||
if(_loc4_ > 1)
|
||||
{
|
||||
contactStack.push(new Skeeball_CustomContactPoint(_loc2_,_loc3_,_loc4_,_loc5_));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package game.skeeball
|
||||
{
|
||||
import Box2D.Collision.Shapes.b2Shape;
|
||||
import Box2D.Common.Math.b2Vec2;
|
||||
|
||||
public class Skeeball_CustomContactPoint
|
||||
{
|
||||
|
||||
public var shape1:b2Shape;
|
||||
|
||||
public var shape2:b2Shape;
|
||||
|
||||
public var separation:Number;
|
||||
|
||||
public var position:b2Vec2;
|
||||
|
||||
public var velocity:b2Vec2;
|
||||
|
||||
public var normal:b2Vec2;
|
||||
|
||||
public var force:Number;
|
||||
|
||||
public var normalImpulse:Number;
|
||||
|
||||
public var tangentImpulse:Number;
|
||||
|
||||
public function Skeeball_CustomContactPoint(param1:b2Shape, param2:b2Shape, param3:Number, param4:b2Vec2)
|
||||
{
|
||||
super();
|
||||
shape1 = param1;
|
||||
shape2 = param2;
|
||||
normalImpulse = param3;
|
||||
position = param4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user