@@ -64,7 +64,7 @@ The "behavior" of the Social Group is programmed as a state machine. The followi
Because the group forms a circular arrangement, we specify D as the distance between the user and the group center minus the group radius, i.e. the distance between the user and the perimeter of the circle. We start in the Idle state. If D is smaller than the Gaze Distance, the group changes to the gazing state.
### Gazing
The two agents closest to the user, add the user to their gazing pattern. If the distance increases to D > _GazeDistance_ + R/3, we go back to the **Idle **state. To not jump around sates, R/3 was added (R = Group Radius). If the distance decreases to D < _JoinDistance_ and if the user is oriented towards the group center, a join is detected and the state changes to **In Group**.
The two agents closest to the user, add the user to their gazing pattern. If the distance increases to D > _GazeDistance_ + R/3, we go back to the **Idle state**. To not jump around sates, R/3 was added (R = Group Radius). If the distance decreases to D < _JoinDistance_ and if the user is oriented towards the group center, a join is detected and the state changes to **In Group**.
### In Group
If the user is in the group, he is added to the agents gazing pattern. If the distance to the group center increases to D > _JoinDistance_ + _StillStandingVariance_ and if the user is not oriented to the group center anymore, a leave is detected and the state is changed to **Leaving**.