
[Unity] HeadBob 구현
·
Game Engine/Game Project
🔍 Headbob이란?사람이 움직일 때 시야가 흔들리듯이 이동시에 카메라가 흔들리는 효과 Player에 하위의 카메라를 담은 빈오브젝트 카메라 루트에다 스크립트를 붙여주었습니다.using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.Rendering;public class HeadBob : MonoBehaviour{ // Start is called before the first frame update [Range(0.001f, 0.01f)] public float Amount = 0.002f; [Range(1f, 30f)] public float Frequency..