Constructors

Properties

Methods

Constructors

Properties

damp: number
k: number
mass: number
velocity: vec3

Methods

  • Evaluates the new position of the object based on the spring dynamics.

    Parameters

    • currentValue: vec3

      The current position of the object.

    • targetValue: vec3

      The target position of the object.

    Returns vec3

    The updated position of the object.

  • Returns void