step box mode deltabools

This commit is contained in:
ethan merchant 2024-11-09 19:52:02 -05:00
parent 91b3f69bf4
commit bf66637bce

View file

@ -69,9 +69,12 @@ static class Mono
} }
else else
{ {
bool in_dist = Vec3.Distance(Rig.r_con_stick.position, box_pose.position) < 6 * U.cm; in_dist.Step(Vec3.Distance(Rig.r_con_stick.position, box_pose.position) < 6 * U.cm);
held.Step(in_dist && Rig.btn_grip.state); bool pickup = in_dist.state && Rig.btn_grip.delta == +1;
if (held.state) in_cone.Step(Vec3.AngleBetween(
Rig.head.orientation * Vec3.Forward,
Vec3.Direction(box_pose.position, Rig.head.position)
) < 15.0f);
{ {
box_pose.position = Rig.r_con_stick.position; box_pose.position = Rig.r_con_stick.position;
} }