Research Article

A Study of Physical Fitness and Enjoyment on Virtual Running for Exergames

Algorithm 2

Squat virtual running.
Data:LHandT rigger, RHandT rigger,, and as trigger controllers, head
position and angle between and Z-axis, respectively.
Result: Locomotion by squat applied on .
begin
,,,squat range, gaze, angle, acceleration, inertia
forframe i=1toNdo
   ifLHandTrigger is TrueandRHandTrigger is Trueand
    0 < γ <gazethresholdthen
     
     ifthen
      
     else
      
     else