runtime pid design vars
This commit is contained in:
parent
d4cf6a3333
commit
231ee8ac2a
1 changed files with 2 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue