Skip to content

Commit

Permalink
Don't wake immovable objects (space-wizards#1343)
Browse files Browse the repository at this point in the history
Co-authored-by: Metal Gear Sloth <[email protected]>
  • Loading branch information
metalgearsloth and Metal Gear Sloth authored Oct 21, 2020
1 parent 62b60fc commit 9cc3c2c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ private set
/// <inheritdoc />
public void WakeBody()
{
SleepAccumulator = 0;
if (CanMove())
SleepAccumulator = 0;
}

public PhysicsComponent()
Expand Down

0 comments on commit 9cc3c2c

Please sign in to comment.