Skip to content

Commit

Permalink
4.0.8
Browse files Browse the repository at this point in the history
- Fixed kinematic warnings on RigidbodyPauser.
  • Loading branch information
FirstGearGames committed Jan 14, 2024
1 parent df3f304 commit aebc3d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/FishNet/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.7
4.0.8

0 comments on commit aebc3d7

Please sign in to comment.