mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-14 16:27:19 +00:00
Only on server or local player
This commit is contained in:
parent
0d5a90a3c0
commit
2370a67335
1 changed files with 5 additions and 4 deletions
|
@ -135,10 +135,11 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
|
||||
private void PhysicsFixedUpdate()
|
||||
{
|
||||
|
||||
this.UpdateWheelsPhysics();
|
||||
|
||||
this.AddAntiRollForceToRigidBody();
|
||||
if (m_isServer || this.IsControlledByLocalPlayer)
|
||||
{
|
||||
this.UpdateWheelsPhysics();
|
||||
this.AddAntiRollForceToRigidBody();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue