hacky temporary fix for rails
This commit is contained in:
parent
a832b4c8bf
commit
c9f9ea54bf
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue