step box mode deltabools
This commit is contained in:
parent
91b3f69bf4
commit
bf66637bce
1 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue