This commit is contained in:
in0finite 2022-05-04 03:54:58 +02:00
parent d0bd858cce
commit e988839038

View file

@ -30,7 +30,7 @@ namespace SanAndreasUnity.Behaviours.Vehicles
{ {
_geometryParts.AttachCollisionModel(transform, true); _geometryParts.AttachCollisionModel(transform, true);
_rigidBody = gameObject.GetComponent<Rigidbody>(); _rigidBody = gameObject.GetComponentOrThrow<Rigidbody>();
_rigidBody.interpolation = Net.NetStatus.IsServer ? VehicleManager.Instance.rigidbodyInterpolationOnServer : VehicleManager.Instance.rigidbodyInterpolationOnClient; _rigidBody.interpolation = Net.NetStatus.IsServer ? VehicleManager.Instance.rigidbodyInterpolationOnServer : VehicleManager.Instance.rigidbodyInterpolationOnClient;
_rigidBody.collisionDetectionMode = VehicleManager.Instance.rigidBodyCollisionDetectionMode; _rigidBody.collisionDetectionMode = VehicleManager.Instance.rigidBodyCollisionDetectionMode;