in0finite / SanAndreasUnity

Open source reimplementation of GTA San Andreas game engine in Unity
https://discord.gg/p6jjud5
MIT License
2.15k stars 353 forks source link

Aiming/firing position and direction are not good #48

Open in0finite opened 4 years ago

in0finite commented 4 years ago

Possibly it happens because of script execution order. Fire position and direction are obtained after/before skeleton changes or transform update. It can be seen when line is drawn from gun, and ped starts moving to side.

Also, the wrong fire position and direction are sent to the server (when running as a client).