diff --git a/Assets/Third/KinematicCharacterController/ExampleCharacter/Scripts/ExampleCharacterCamera.cs b/Assets/Third/KinematicCharacterController/ExampleCharacter/Scripts/ExampleCharacterCamera.cs index 62e5239..7d17f43 100644 --- a/Assets/Third/KinematicCharacterController/ExampleCharacter/Scripts/ExampleCharacterCamera.cs +++ b/Assets/Third/KinematicCharacterController/ExampleCharacter/Scripts/ExampleCharacterCamera.cs @@ -76,9 +76,14 @@ namespace KinematicCharacterController.Examples } public void ResetTR(Vector3 rotDefault) { + Transform = this.transform; + + _currentDistance = DefaultDistance; + TargetDistance = _currentDistance; + _targetVerticalAngle = rotDefault.x; - PlanarDirection = FollowTransform.forward; + PlanarDirection = Vector3.forward; } // Set the transform that the camera will orbit around public void SetFollowTransform(Transform t)