@pixiv/three-vrm
    Preparing search index...

    Interface SecondaryAnimationSpring

    interface SecondaryAnimationSpring {
        bones?: number[];
        center?: number;
        colliderGroups?: number[];
        comment?: string;
        dragForce?: number;
        gravityDir?: Vector3;
        gravityPower?: number;
        hitRadius?: number;
        stiffiness?: number;
    }
    Index

    Properties

    bones?: number[]

    Specify the node index of the root bone of the swaying object.

    center?: number

    The reference point of a swaying object can be set at any location except the origin. When implementing UI moving with warp, the parent node to move with warp can be specified if you don't want to make the object swaying with warp movement.

    colliderGroups?: number[]

    Specify the index of the collider group for collisions with swaying objects.

    comment?: string

    Annotation comment

    dragForce?: number

    The resistance (deceleration) of automatic animation.

    gravityDir?: Vector3

    The direction of gravity. Set (0, -1, 0) for simulating the gravity. Set (1, 0, 0) for simulating the wind.

    gravityPower?: number

    The strength of gravity.

    hitRadius?: number

    The radius of the sphere used for the collision detection with colliders.

    stiffiness?: number

    The resilience of the swaying object (the power of returning to the initial pose).