mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09: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,54 @@
|
||||
package Box2D.Dynamics.Joints
|
||||
{
|
||||
import Box2D.Common.Math.b2Vec2;
|
||||
import Box2D.Dynamics.b2Body;
|
||||
|
||||
public class b2PrismaticJointDef extends b2JointDef
|
||||
{
|
||||
|
||||
public var localAnchor1:b2Vec2 = new b2Vec2();
|
||||
|
||||
public var localAnchor2:b2Vec2 = new b2Vec2();
|
||||
|
||||
public var localAxis1:b2Vec2 = new b2Vec2();
|
||||
|
||||
public var referenceAngle:Number;
|
||||
|
||||
public var enableLimit:Boolean;
|
||||
|
||||
public var lowerTranslation:Number;
|
||||
|
||||
public var upperTranslation:Number;
|
||||
|
||||
public var enableMotor:Boolean;
|
||||
|
||||
public var maxMotorForce:Number;
|
||||
|
||||
public var motorSpeed:Number;
|
||||
|
||||
public function b2PrismaticJointDef()
|
||||
{
|
||||
super();
|
||||
type = 2;
|
||||
localAxis1.Set(1,0);
|
||||
referenceAngle = 0;
|
||||
enableLimit = false;
|
||||
lowerTranslation = 0;
|
||||
upperTranslation = 0;
|
||||
enableMotor = false;
|
||||
maxMotorForce = 0;
|
||||
motorSpeed = 0;
|
||||
}
|
||||
|
||||
public function Initialize(param1:b2Body, param2:b2Body, param3:b2Vec2, param4:b2Vec2) : void
|
||||
{
|
||||
body1 = param1;
|
||||
body2 = param2;
|
||||
localAnchor1 = body1.GetLocalPoint(param3);
|
||||
localAnchor2 = body2.GetLocalPoint(param3);
|
||||
localAxis1 = body1.GetLocalVector(param4);
|
||||
referenceAngle = body2.GetAngle() - body1.GetAngle();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user