hacky temporary fix for rails

This commit is contained in:
spatialfree 2021-11-29 09:48:02 -05:00
parent a832b4c8bf
commit c9f9ea54bf
2 changed files with 5 additions and 3 deletions

View file

@ -83,11 +83,13 @@ public class Mono {
// pos = closestPoint - (subCon.aim.position - pos); // pos = closestPoint - (subCon.aim.position - pos);
} }
if (subCon.IsX1Pressed) { 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; 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) { if (domCon.IsX1JustPressed) {
movePress = Time.Totalf; movePress = Time.Totalf;
dragStart = cursor.p0; dragStart = cursor.p0;

View file

@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="StereoKit" Version="0.3.4" /> <PackageReference Include="StereoKit" Version="0.3.5-preview.2" />
<PackageReference Include="System.Speech" Version="5.0.0" /> <PackageReference Include="System.Speech" Version="5.0.0" />
</ItemGroup> </ItemGroup>