Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.7.0
    Preparing search index...

    Function calculateSmoothHeadRotation

    • Calculate smooth head rotation toward target

      Uses linear interpolation (lerp) for smooth head turning. Each Euler angle component is interpolated independently.

      Parameters

      • currentRotation: Euler

        Current head rotation

      • targetPosition: Vector3

        Position to look at

      • headPosition: Vector3

        Current head position in world space

      • smoothing: number = 0.1

        Smoothing factor (0-1, lower = smoother)

      Returns Euler

      New head rotation

      부드러운머리회전계산