melonJS
    Preparing search index...

    Type Alias JointType

    JointType: "hinge" | "rope" | "weld" | "slider"

    The kinds of joint World#addJoint makes. Each maps to the same joint in every engine that has joints:

    • "hinge": the two bodies share a point and turn freely about it (a chain link, a door, a wheel). Optional limits bound the angle.
    • "rope": the anchors stay within maxLength of each other, and can come closer (a pendulum, a grappling hook, a cap on a chain's length).
    • "weld": the two bodies move and turn as one, as they stand when the joint is made (parts glued together that can break apart).
    • "slider": the second body slides along axis and keeps its angle to the first, as it was when the joint was made (a lift, a piston). Optional limits bound the travel.