Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #43 from ForLoveOfCats/PlayerMovementRewrite
Browse files Browse the repository at this point in the history
Player movement rewrite
  • Loading branch information
ForLoveOfCats committed Mar 25, 2019
2 parents a1f5c4d + b67a590 commit 104f02f
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 270 deletions.
6 changes: 6 additions & 0 deletions Game/SteelMath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@ public static float LoopRotation(float Rot)

return Rot;
}


public static Vector3 ClampVec3(Vector3 Vec, float Min, float Max)
{
return Vec.Normalized() * Mathf.Clamp(Vec.Length(), Min, Max);
}
}

0 comments on commit 104f02f

Please sign in to comment.