#17 Rockfall FixedUpdate로 변경
This commit is contained in:
parent
65282463e5
commit
1ee1df12dd
@ -75,7 +75,7 @@ namespace BlueWater
|
|||||||
_startDistance = _raycastHit.distance;
|
_startDistance = _raycastHit.distance;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update()
|
private void FixedUpdate()
|
||||||
{
|
{
|
||||||
if (!Physics.Raycast(transform.position, Vector3.down, out _raycastHit, 10f, _groundLayer))
|
if (!Physics.Raycast(transform.position, Vector3.down, out _raycastHit, 10f, _groundLayer))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user