```
player allowDamage false;
onEachFrame {
if (isGamePaused) exitWith {};
if (isTouchingGround player) exitWith {player setVelocity [0,100,100]};
player setVectorDir ([vectorDirVisual player, 1] call BIS_fnc_rotateVector2D);
_velocity = vectorNormalized (velocity player select [0,2]);
hintSilent str ([0,0,0] getDir _velocity)
}
```
`setDir` works correctly:
```
player allowDamage false;
onEachFrame {
if (isGamePaused) exitWith {};
if (isTouchingGround player) exitWith {player setVelocity [0,100,100]};
player setDir (getDirVisual player - 1);
_velocity = vectorNormalized (velocity player select [0,2]);
hintSilent str ([0,0,0] getDir _velocity)
}
```