mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-14 00:07:15 +00:00
more precise positioning after ground is found
This commit is contained in:
parent
a06fd323db
commit
615f8d33cd
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
|
||||
private void OnFoundGround(RaycastHit hit, int numAttempts, string customMessage) {
|
||||
|
||||
this.transform.position = hit.point + Vector3.up * characterController.height * 1.5f;
|
||||
this.transform.position = hit.point + Vector3.up * (characterController.height + 0.1f);
|
||||
this.Velocity = Vector3.zero;
|
||||
|
||||
Debug.LogFormat ("Found ground at {0}, distance {1}, object name {2}, num attempts {3}, {4}, ped {5}", hit.point, hit.distance,
|
||||
|
|
Loading…
Reference in a new issue