diff --git a/Assets/FishNet/Runtime/Generated/Component/Prediction/RigidbodyPauser.cs b/Assets/FishNet/Runtime/Generated/Component/Prediction/RigidbodyPauser.cs index 3570c597..32388aa8 100644 --- a/Assets/FishNet/Runtime/Generated/Component/Prediction/RigidbodyPauser.cs +++ b/Assets/FishNet/Runtime/Generated/Component/Prediction/RigidbodyPauser.cs @@ -324,11 +324,13 @@ bool UnpauseRigidbody(int index) if (rb == null) return false; - rb.velocity = rbData.Velocity; - rb.angularVelocity = rbData.AngularVelocity; rb.isKinematic = rbData.IsKinematic; rb.detectCollisions = rbData.DetectCollisions; - + if (!rb.isKinematic) + { + rb.velocity = rbData.Velocity; + rb.angularVelocity = rbData.AngularVelocity; + } return true; } } @@ -352,11 +354,13 @@ bool UnpauseRigidbody(int index) if (rb == null) return false; - rb.velocity = rbData.Velocity; - rb.angularVelocity = rbData.AngularVelocity; rb.isKinematic = rbData.IsKinematic; rb.simulated = rbData.Simulated; - + if (!rb.isKinematic) + { + rb.velocity = rbData.Velocity; + rb.angularVelocity = rbData.AngularVelocity; + } return true; } } diff --git a/Assets/FishNet/VERSION.txt b/Assets/FishNet/VERSION.txt index d356c34a..a7d0a2ed 100644 --- a/Assets/FishNet/VERSION.txt +++ b/Assets/FishNet/VERSION.txt @@ -1 +1 @@ -4.0.7 \ No newline at end of file +4.0.8 \ No newline at end of file