コード例 #1
0
ファイル: MouseJointDef.cs プロジェクト: Deusald/SharpBox2D
 public MouseJointDef()
 {
     JointType = JointType.MouseJoint;
     Target.Set(0.0f, 0.0f);
     MaxForce  = 0.0f;
     Stiffness = 5.0f;
     Damping   = 0.7f;
 }
コード例 #2
0
 public WeldJointDef()
 {
     JointType = JointType.WeldJoint;
     LocalAnchorA.Set(0.0f, 0.0f);
     LocalAnchorB.Set(0.0f, 0.0f);
     ReferenceAngle = 0.0f;
     Stiffness      = 0.0f;
     Damping        = 0.0f;
 }
コード例 #3
0
 public DistanceJointDef()
 {
     JointType = JointType.DistanceJoint;
     LocalAnchorA.Set(0.0f, 0.0f);
     LocalAnchorB.Set(0.0f, 0.0f);
     MinLength = 0.0f;
     MaxLength = Settings.MaxFloat;
     Length    = 1.0f;
     Stiffness = 0.0f;
     Damping   = 0.0f;
 }
コード例 #4
0
 public RevoluteJointDef()
 {
     JointType = JointType.RevoluteJoint;
     LocalAnchorA.Set(0.0f, 0.0f);
     LocalAnchorB.Set(0.0f, 0.0f);
     ReferenceAngle = 0.0f;
     LowerAngle     = 0.0f;
     UpperAngle     = 0.0f;
     MaxMotorTorque = 0.0f;
     MotorSpeed     = 0.0f;
     EnableLimit    = false;
     EnableMotor    = false;
 }
コード例 #5
0
 public PrismaticJointDef()
 {
     JointType = JointType.PrismaticJoint;
     LocalAnchorA.SetZero();
     LocalAnchorB.SetZero();
     LocalAxisA.Set(1.0f, 0.0f);
     ReferenceAngle   = 0.0f;
     EnableLimit      = false;
     LowerTranslation = 0.0f;
     UpperTranslation = 0.0f;
     EnableMotor      = false;
     MaxMotorForce    = 0.0f;
     MotorSpeed       = 0.0f;
 }
コード例 #6
0
ファイル: WheelJointDef.cs プロジェクト: Deusald/SharpBox2D
 public WheelJointDef()
 {
     JointType = JointType.WheelJoint;
     LocalAnchorA.SetZero();
     LocalAnchorB.SetZero();
     LocalAxisA.Set(1.0f, 0.0f);
     EnableLimit      = false;
     LowerTranslation = 0.0f;
     UpperTranslation = 0.0f;
     EnableMotor      = false;
     MaxMotorTorque   = 0.0f;
     MotorSpeed       = 0.0f;
     Stiffness        = 0.0f;
     Damping          = 0.0f;
 }
コード例 #7
0
        public PulleyJointDef()
        {
            JointType = JointType.PulleyJoint;

            GroundAnchorA.Set(-1.0f, 1.0f);

            GroundAnchorB.Set(1.0f, 1.0f);

            LocalAnchorA.Set(-1.0f, 0.0f);

            LocalAnchorB.Set(1.0f, 0.0f);

            LengthA = 0.0f;

            LengthB = 0.0f;

            Ratio = 1.0f;

            CollideConnected = true;
        }