修改摄像机重置参数设定
This commit is contained in:
parent
6dc3fc98d5
commit
096df6dd3e
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user