diff --git a/Program.cs b/Program.cs index c48643f..02d58db 100644 --- a/Program.cs +++ b/Program.cs @@ -83,11 +83,13 @@ public class Mono { // pos = closestPoint - (subCon.aim.position - pos); } if (subCon.IsX1Pressed) { - pos = Bezier.Sample(rail, railT) - (subCon.aim.position - pos); + pos = Vec3.Lerp(pos, Bezier.Sample(rail, railT) - (subCon.aim.position - pos), Time.Elapsedf * 6f); railT += Time.Elapsedf * 0.1f; - // how to reliably determine and control which direction to go? + // how to reliably determine and control which direction to go? (velocity) } + // Console.WriteLine(World.RefreshInterval.ToString()); + if (domCon.IsX1JustPressed) { movePress = Time.Totalf; dragStart = cursor.p0; diff --git a/oriels.csproj b/oriels.csproj index d54e767..cc187a4 100644 --- a/oriels.csproj +++ b/oriels.csproj @@ -7,7 +7,7 @@ - +