mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 22:10:17 +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()
|
private void PhysicsFixedUpdate()
|
||||||
{
|
{
|
||||||
|
if (m_isServer || this.IsControlledByLocalPlayer)
|
||||||
this.UpdateWheelsPhysics();
|
{
|
||||||
|
this.UpdateWheelsPhysics();
|
||||||
this.AddAntiRollForceToRigidBody();
|
this.AddAntiRollForceToRigidBody();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue