mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-17 05:18:27 +00:00
use RigidBody's position for syncing, not transform's
This commit is contained in:
parent
c4699859e1
commit
93a1c7aaf0
1 changed files with 2 additions and 2 deletions
|
@ -161,8 +161,8 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
m_net_acceleration = m_vehicle.Accelerator;
|
||||
m_net_steering = m_vehicle.Steering;
|
||||
m_net_braking = m_vehicle.Braking;
|
||||
m_net_position = m_vehicle.transform.position;
|
||||
m_net_rotation = m_vehicle.transform.rotation;
|
||||
m_net_position = m_vehicle.RigidBody.position;
|
||||
m_net_rotation = m_vehicle.RigidBody.rotation;
|
||||
m_net_linearVelocity = m_vehicle.RigidBody.velocity;
|
||||
m_net_angularVelocity = m_vehicle.RigidBody.angularVelocity;
|
||||
m_net_health = m_vehicle.Health;
|
||||
|
|
Loading…
Add table
Reference in a new issue