// 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 ); }
public static extern IntPtr CreatePrismaticJoint( IntPtr w, PrismaticJointDef def );