#17 Rockfall FixedUpdate로 변경

This commit is contained in:
Nam Tae Gun 2024-06-15 11:35:32 +09:00
parent 65282463e5
commit 1ee1df12dd

View File

@ -75,7 +75,7 @@ namespace BlueWater
_startDistance = _raycastHit.distance;
}
private void Update()
private void FixedUpdate()
{
if (!Physics.Raycast(transform.position, Vector3.down, out _raycastHit, 10f, _groundLayer))
{