유니티 C# 카메라 목표지점까지 부드럽게 이동 Camera Vector3.SmoothDamp


유니티 C# 카메라 목표지점까지 부드럽게 이동 Camera Vector3.SmoothDamp

코드 작성 using System.Collections; using System.Collections.Generic; using UnityEngine; public class MoveCamera : MonoBehaviour { public Transform targetPosition; public float smoothTime = 0.3f; private Vector3 velocity = Vector3.zero; public bool isActive = false; private void Start() { isActive = true; } private void Update() { if (isActive) { Camera.main.transform.position = Vector3.SmoothDamp(C..


원문링크 : 유니티 C# 카메라 목표지점까지 부드럽게 이동 Camera Vector3.SmoothDamp