fullstick

This commit is contained in:
spatialfree 2021-11-29 07:19:58 -05:00
parent f5517e926e
commit d46f305ae4
2 changed files with 6 additions and 2 deletions

View file

@ -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;
}

View file

@ -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)