From Bohemia Interactive Community
Notes
Bottom Section
- Posted on May 26, 2014 - 19:10 (UTC)
- Killzone Kid
-
This command should have really been named headDirection instead of eyeDirection as one could mistakenly think that eyes direction of your avatar correspond to the direction of the centre of your screen. In fact the direction returned by eyeDirection is avatar's head direction relative to the torso (minus ambient head animation factor). Play with the script in example 1 to find out limitations. If you need centre of screen direction, use positionCameraToWorld instead.