Ejemplo n.º 1
0
        public void SetHighPrecisionPosition(Vector3 position)
        {
            if (highPrecisionPosition == null)
            {
                highPrecisionPosition = ParentObject.GetComponent <HighPrecisionPosition>();
            }

            highPrecisionPosition.Position = new Vector3d(position);
        }
Ejemplo n.º 2
0
 public void Initialise()
 {
     //if a high precisionposition component is detected, the transform will assume a coordinate system where the camera
     //is always centered at zero, and transformations will behave accordingly.
     highPrecisionPosition = ParentObject.GetComponent <HighPrecisionPosition>();
 }