コード例 #1
0
 // Use this for initialization
 protected override IntPtr Init()
 {
     PrismaticJointDef jd = new PrismaticJointDef(other.body, body.body);
     jd.Initialize(other.body,body.body,anchor, axis);
     jd.enableLimit = enableLimit;
     jd.lowerTranslation = lowerTranslation;
     jd.upperTranslation = upperTranslation;
     jd.enableMotor = enableMotor;
     jd.maxMotorForce = maxMotorForce;
     jd.motorSpeed = motorSpeed;
     return API.CreatePrismaticJoint( B2DWorld.instance.world, jd );
 }
コード例 #2
0
ファイル: API.cs プロジェクト: stallon/SurvivalIsland
 public static extern IntPtr CreatePrismaticJoint( IntPtr w, PrismaticJointDef def );