Skip to content

Instantly share code, notes, and snippets.

View ThomasSchoenbeck's full-sized avatar

Thomas Schönbeck ThomasSchoenbeck

  • Germany
  • 18:41 (UTC +02:00)
View GitHub Profile
@ThomasSchoenbeck
ThomasSchoenbeck / FloatingOrigin
Created March 25, 2021 23:14 — forked from brihernandez/FloatingOrigin.cs
Floating origin to handle large worlds in Unity.
// Based on the Unity Wiki FloatingOrigin script by Peter Stirling
// URL: http://wiki.unity3d.com/index.php/Floating_Origin
using UnityEngine;
using UnityEngine.SceneManagement;
public class FloatingOrigin : MonoBehaviour
{
[Tooltip("Point of reference from which to check the distance to origin.")]
public Transform ReferenceObject = null;