Documentation
    Preparing search index...

    Interface LinearJointMotor

    A velocity-driven motor on a prismatic joint — AngularJointMotor's linear twin (§28).

    interface LinearJointMotor {
        enabled?: boolean;
        maxForce: number;
        targetVelocity: number;
    }
    Index
    enabled?: boolean

    Whether the motor drives the joint at all. Defaults to true.

    maxForce: number

    Largest force the motor may apply, in newtons. Must be >= 0.

    Solver caveat: on the Rapier adapters this is a strength gain, not a hard ceiling — see SolverJointMotor.maxEffort.

    targetVelocity: number

    Target linear rate in metres per second (§7a).