added viewDirection for CDirection, unreachable outside currently.