From c9f9ea54bffd16708f19d7d7ae1c466993f389df Mon Sep 17 00:00:00 2001 From: spatialfree Date: Mon, 29 Nov 2021 09:48:02 -0500 Subject: [PATCH] hacky temporary fix for rails --- Program.cs | 6 ++++-- oriels.csproj | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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 @@ - +