This commit is contained in:
ethan merchant 2024-11-09 01:52:10 -05:00
parent b4d0551cb5
commit 6fc7e38851

View file

@ -7,6 +7,7 @@ static class Rig
public static Pose head = Pose.Identity;
public static DeltaBool btn_trigger = new(false);
public static DeltaBool btn_grip = new(false);
public static Vec3 fullstick = Vec3.Up;
public static Pose r_con_stick = Pose.Identity;
@ -37,9 +38,10 @@ static class Rig
}
else
{
Hand r_hand = Input.Hand(Handed.Right);
// Hand r_hand = Input.Hand(Handed.Right);
Controller r_con = Input.Controller(Handed.Right);
btn_trigger.Step(r_con.trigger > 0.5f);
btn_grip.Step(r_con.grip > 0.5f);
bool con_tracked = r_con.trackedPos > TrackState.Lost;
Input.HandVisible(Handed.Max, !con_tracked);