moonee-e3 님의 블로그
2024-05-20 플레이어의 카메라 시점 변경 본문
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Follow : MonoBehaviour
{
public Transform target;
public Vector3 offset;
// Update is called once per frame
void Update()
{
transform.position = target.position + offset;
}
//카메라 안 오브제 확인 코드 https://blog.naver.com/10ro/220895900463
}
'개발 일지 [3D | Dream Forest]' 카테고리의 다른 글
2024-06-14 | 포탈_닿으면 플레이어 위치 이동 (0) | 2024.06.22 |
---|---|
2024-05-31 | 3D에서 2D 스프라이트 화면에 맞게 나타내기 (0) | 2024.06.22 |
2024-05-25 같은 위치 반복해서 움직이는 적 (0) | 2024.06.22 |
2024-05-28 시야각에 들어오면 죽이는 적 구현 (0) | 2024.06.21 |
Dream Forest 개발 일지 날짜별 정리 (0) | 2024.06.20 |