This was a great idea! I've got this coming up.
distance_between_controllers Condition
controller P1L, P1R, P2L, P2R
Specify the controller you wish to check. ( P1R checks agains P1L, P1L checks agains P1R, P2L checks against P2R etc)
distance int
The distance in mm the controllers must be apart for the condition to return true
axis x, y, z, any
The axis to use when checking the distance relative to the base
Below, the condition returns true if the right controller is 100mm in front of the left controller down the z axis relative to the base.
Code:
<conditions>
<distance_between_controllers>
<controller>P1R</controller>
<filter>normal</filter>
<distance>100</distance>
<axis>z</axis>
</distance_between_controllers>
</conditions>
The following condition returns true when the player puts the left controller to the right of the right controller 100mm. Basically we can check if the player is CROSSING his hands.
Code:
<conditions>
<distance_between_controllers>
<controller>P1L</controller>
<filter>inverted</filter>
<distance>-100</distance>
<axis>x</axis>
</distance_between_controllers>
</conditions>