修改摄像机重置参数设定

This commit is contained in:
“CongG” 2025-01-10 14:25:11 +08:00
parent 6dc3fc98d5
commit 096df6dd3e

View File

@ -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)