Skip to content

Commit 0d55078

Browse files
committed
Fixed bug where you would fall through terrain
1 parent 4f56108 commit 0d55078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PeepCam/PeepCam.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void Update()
4141

4242
if (Physics.Raycast(ray, out hit, Mathf.Infinity))
4343
{
44-
EnterHeadCam(hit.transform.position + Vector3.up);
44+
EnterHeadCam(hit.point + Vector3.up);
4545
}
4646
}
4747
else if (Input.GetKeyUp(KeyCode.Tab))

0 commit comments

Comments
 (0)