Skip to content

Commit 3faeb75

Browse files
committed
fix: reset camera parent transform in freecam mode
in garage and meetspot
1 parent 4641b1d commit 3faeb75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/NightRunners/Utils/RCCUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ private static void TogglePersonController(GameObject container, bool enable)
5757
controller.homegarage.noInput = !enable;
5858
}
5959
GodConstant.Instance.UI_Data.ui_showWarning = !enable; //prevents user interactions on meetspot
60+
var vCamera = controller.transform.Find("vCamera");
61+
if (vCamera)
62+
{
63+
vCamera.transform.localPosition = enable ? new Vector3(0, 0.85f, 0) : Vector3.zero; //direct camera GO parent
64+
}
6065
}
6166
else
6267
{

0 commit comments

Comments
 (0)