유니티 6 쓰고잇음
[🐣질문] 카메라 따라오기 버그
빛바랜놈(112.148)
2025-03-16 17:33:00
추천 0
댓글 5
다른 게시글
-
커밋 존나귀찮아
[2][💬] 2호기(wlsrb014756) | 25.03.16추천 0 -
#2 준비 인생 첫 게임 개발일지 (2일차)
[3][📜일지] 조깐지(grain0455) | 25.03.16추천 0 -
구인글 올릴거면
[3][💬] 익명(222.110) | 25.03.16추천 0 -
하루종일 만든 미니게임
[1][💬] 익명(1.241) | 25.03.16추천 2 -
턴제게임 공격 애니메이션 코딩 훈수좀
[9][💬] 익명(121.169) | 25.03.16추천 0 -
밑글 깃허브 잔디 미쳣네
[2][💬] 게임안만드..(coffee6972) | 25.03.16추천 0 -
구인하는 놈들아 기본은 지켜라
[1][💬] 익명(221.155) | 25.03.16추천 0 -
게임 만드는거에 흥미 돌때랑 안돌때
[2][💬] 미월이(john2000s) | 25.03.16추천 1 -
맵 전환할 때는 오브젝트 다 지우는 게 맞나?
[2][💬] 익명(121.129) | 25.03.16추천 0 -
어딜 가는거야...
[10][💬] goniometer(thigh3240) | 25.03.16추천 9
진짜 왜 이럼? 코드 봐도 모르겠네
그러게 - dc App
힌트 좀 더 줘
using UnityEngine;public class CameraFollow : MonoBehaviour{ public Transform target; public float smoothSpeed = 5f; public Vector3 offset = new Vector3(0f, 0f, -10f); void LateUpdate() { if (target == null) return; Vector3 targetPosition = target.position + offset; transform.position = Vector3.Lerp(transform.position, targetPosition, smoothSpeed *