Skip to content

Commit

Permalink
Fish fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal R committed Feb 1, 2021
1 parent 25554fd commit 737a78e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Game.API.Common/Models/Hook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static Hook Default

Fishes = 35, // smaller for test arena; default is 350; ignored if WorldResizeEnabled = true
FishesMultiplier = 0.01, // used when WorldResizeEnabled = true
FishThrust = 0.004f,
FishThrust = 0.0025f,
FishFlockAlignment = 10f,
FishFlockCohesion = 0.001f,
FishFlockCohesionMaximumDistance = 3000,
Expand Down
2 changes: 1 addition & 1 deletion Game.Engine/Core/Fish.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void Randomize()
{
var r = new Random();
Position = World.RandomPosition();
Angle = (float)r.NextDouble() * MathF.PI * 2;
AngleMovement = (float)r.NextDouble() * MathF.PI * 2;
ThrustAmount = World.Hook.FishThrust;
r = new Random();
int rInt = r.Next(0, 7); //for ints
Expand Down

0 comments on commit 737a78e

Please sign in to comment.