diff --git a/app/Space/Mono.cs b/app/Space/Mono.cs index 9ee14b4..ebbd14b 100644 --- a/app/Space/Mono.cs +++ b/app/Space/Mono.cs @@ -53,6 +53,8 @@ public class Mono { // fly player towards cursor: // playerPos += (localCursor - playerPos).Normalized * 1f * Time.Elapsedf; + pidX.p = moveP; pidY.p = moveP; pidZ.p = moveP; + pidX.i = moveI; pidY.i = moveI; pidZ.i = moveI; playerPos = new Vec3( pidX.Update(localCursor.x), pidY.Update(localCursor.y),