Function worldToRTCPos

  • Converts a 3D World-space position to RTC coordinates.

    This function takes a World-space position, which is a double-precision value, and transforms it into RTC coordinates. The result is a double-precision RTC center position, and a single-precision offset from that center.

    Parameters

    • worldPos: FloatArrayParam

      The World-space position as an array of [x, y, z] coordinates.

    • rtcCenter: FloatArrayParam

      The resulting RTC center coordinates.

    • rtcPos: FloatArrayParam

      The resulting RTC position (offset from the RTC center).

    Returns void