From 0d550786df2f879dca8d01827b09bc0f2411112b Mon Sep 17 00:00:00 2001 From: Luuk Holleman Date: Tue, 6 Oct 2015 16:48:19 +0200 Subject: [PATCH] Fixed bug where you would fall through terrain --- PeepCam/PeepCam.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PeepCam/PeepCam.cs b/PeepCam/PeepCam.cs index 390a507..d99f82a 100644 --- a/PeepCam/PeepCam.cs +++ b/PeepCam/PeepCam.cs @@ -41,7 +41,7 @@ void Update() if (Physics.Raycast(ray, out hit, Mathf.Infinity)) { - EnterHeadCam(hit.transform.position + Vector3.up); + EnterHeadCam(hit.point + Vector3.up); } } else if (Input.GetKeyUp(KeyCode.Tab))