mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-03-05 07:37:17 +00:00
Properly obtain aim direction
This commit is contained in:
parent
5a4d82de13
commit
cb92bdd3dd
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
model.ResetFrameState (model.RightForeArm);
|
||||
model.ResetFrameState (model.RightHand);
|
||||
|
||||
Vector3 aimDir = player.Camera.transform.forward;
|
||||
Vector3 aimDir = player.AimDirection;
|
||||
Vector3 aimDirLocal = player.transform.InverseTransformDirection (aimDir);
|
||||
|
||||
bool isAimingOnOppositeSide = aimDirLocal.x < 0f;
|
||||
|
|
Loading…
Add table
Reference in a new issue