fullstick
This commit is contained in:
parent
f5517e926e
commit
d46f305ae4
2 changed files with 6 additions and 2 deletions
|
@ -42,8 +42,12 @@ public class Mono {
|
||||||
else { domCon = Input.Controller(Handed.Right); subCon = Input.Controller(Handed.Left); }
|
else { domCon = Input.Controller(Handed.Right); subCon = Input.Controller(Handed.Left); }
|
||||||
if (subCon.IsX2JustPressed) { lefty = !lefty; }
|
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) {
|
if (domCon.IsX1JustPressed) {
|
||||||
pos = cursor.p0;
|
pos = cursor.p0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ switch between cursors with a button (quick press(b) on both hands to switch/cyc
|
||||||
|
|
||||||
movement:
|
movement:
|
||||||
- fullstick
|
- fullstick
|
||||||
- teleport and drag
|
- ~~teleport~~ and drag
|
||||||
- bezier rails
|
- bezier rails
|
||||||
|
|
||||||
blocks you can manipulate with spatial cursors (trackballer)
|
blocks you can manipulate with spatial cursors (trackballer)
|
||||||
|
|
Loading…
Add table
Reference in a new issue