Beispiel #1
0
        void CheckArea(PlayerPosture posture)
        {
            gpsObjectData.CheckArea(posture.playerPosition, posture.playerAngle);
            gpsAngle    = GPSUtility.Deg2Rad(gpsObjectData.Angle);
            cameraAngle = GPSUtility.Deg2Rad(Camera.main.transform.eulerAngles.y);

            if (gpsObjectData.IsInside.Value)
            {
                if (AreaEnterDebug.Instance != null)
                {
                    AreaEnterDebug.Instance.UpdateDebugText(this.gpsObjectData);
                }
            }
        }
Beispiel #2
0
 public void UpdateInformation(double[] playerPosition, double playerAngle)
 {
     Distance = GPSUtility.HubenyDistance(playerPosition, Position);
     Angle    = GPSUtility.Angle(playerPosition, Position, playerAngle);
 }