Strata - v1.4.10
    Preparing search index...

    Interface RagdollProps

    Props for the Ragdoll component.

    interface RagdollProps {
        active?: boolean;
        children?: ReactNode;
        config?: Partial<RagdollConfig>;
        initialVelocity?: [number, number, number];
        position?: [number, number, number];
        scale?: number;
    }
    Index

    Properties

    active?: boolean

    Whether the ragdoll physics is currently active. Default: true.

    children?: ReactNode

    Child mesh components (shown when inactive).

    config?: Partial<RagdollConfig>

    Configuration for body parts, masses, and joints.

    initialVelocity?: [number, number, number]

    Initial velocity applied to all parts when activated.

    position?: [number, number, number]

    Initial world position. Default: [0, 0, 0].

    scale?: number

    Overall scale multiplier for the ragdoll. Default: 1.0.