diff --git a/Program.cs b/Program.cs index 1f5506b..550c987 100644 --- a/Program.cs +++ b/Program.cs @@ -42,8 +42,12 @@ public class Mono { else { domCon = Input.Controller(Handed.Right); subCon = Input.Controller(Handed.Left); } if (subCon.IsX2JustPressed) { lefty = !lefty; } - SpatialCursor cursor = cursors.Step(domCon.aim, subCon.aim); + Quat rot = Quat.FromAngles(subCon.stick.y * -90, 0, subCon.stick.x * 90); + Vec3 dir = Vec3.Up * (subCon.IsStickClicked ? -1 : 1); + Vec3 fullstick = subCon.aim.orientation * rot * dir; + pos += fullstick * subCon.trigger * Time.Elapsedf; + SpatialCursor cursor = cursors.Step(domCon.aim, subCon.aim); if (domCon.IsX1JustPressed) { pos = cursor.p0; } diff --git a/README.md b/README.md index f5b40da..825f70d 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ switch between cursors with a button (quick press(b) on both hands to switch/cyc movement: - fullstick -- teleport and drag +- ~~teleport~~ and drag - bezier rails blocks you can manipulate with spatial cursors (trackballer)