Documentation
    Preparing search index...

    Interface RopeJointOptions

    How a RopeJoint is constructed (§28).

    interface RopeJointOptions {
        anchor?: Vector3Input;
        anchorA?: Vector3Input;
        anchorB?: Vector3Input;
        bodyA: RigidBody;
        bodyB: RigidBody;
        breakForce?: number;
        breakTorque?: number;
        collisionEnabled?: boolean;
        maxLength: number;
    }

    Hierarchy (View Summary)

    Index
    anchor?: Vector3Input

    The attachment point in world space (§28's anchor), used for both bodies. Omitted means each body's own origin; overridden per body by JointOptions.anchorA / JointOptions.anchorB.

    anchorA?: Vector3Input

    World-space attachment point on bodyA, overriding anchor.

    anchorB?: Vector3Input

    World-space attachment point on bodyB, overriding anchor.

    bodyA: RigidBody

    First constrained body (§28's bodyA). Must differ from bodyB.

    bodyB: RigidBody

    Second constrained body.

    breakForce?: number

    Break force in newtons (§28), or omitted for a joint that never breaks.

    breakTorque?: number

    Break torque in newton-metres (§28). See JointOptions.breakForce.

    collisionEnabled?: boolean

    Whether the two bodies still collide with each other (§28 "collision enable/disable"). false by default.

    maxLength: number

    Greatest distance between the anchors, in metres. Must be > 0.