mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-29 23:40:23 +00:00
Add comments
This commit is contained in:
parent
2dcdbe526f
commit
d0f756fb81
1 changed files with 6 additions and 0 deletions
|
@ -91,7 +91,13 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
else
|
||||
this.ReadInput();
|
||||
|
||||
// why do we send input ?
|
||||
// - so that everyone knows if the gas/brake is pressed, and can simulate wheel effects
|
||||
// - so that server can predict position and velocity of rigid body
|
||||
PedSync.Local.SendVehicleInput(m_vehicle.Accelerator, m_vehicle.Steering, m_vehicle.Braking);
|
||||
|
||||
// TODO: also send velocity of rigid body
|
||||
|
||||
}
|
||||
|
||||
void ProcessSyncvars()
|
||||
|
|
Loading…
Reference in a new issue