Function rtcToWorldPos

  • Converts an RTC position back to World-space.

    Given an RTC position (relative to the RTC center), this function returns the corresponding World-space position.

    Parameters

    • rtcCenter: Vec3

      The RTC center coordinates.

    • rtcPos: Vec3

      The RTC position (offset from the RTC center).

    • worldPos: Vec3

      The resulting World-space position.

    Returns Vec3

    The World-space position.