PLAY THE LEVEL AND GET THE SCRIPTS HERE:
http://www.megalomobile.com/fov-auto-...
*********************************
Learn how to use a player's field of view to automatically aim at enemies in a 3D environment . You can use the same script to make arms point in the right direction, heads turn to see who they are facing and bodies twist to align with those they are facing. Special thanks to Paul who requested this one. It was a lot of fun to make and I hope to get more requests in the future.
**********************************
0:28 Set up basic scene and add player movement.
1:25 Script to always look at the enemy.
3:00 Setting up the script for use with a human shaped player.
3:26 FOV calculations explained with handy diagram.
4:06 Implementing FOV calculations in script.
6:35 Attaching the script to the player's waist .
6:57 Extending the script to keep pointing towards the enemy if still sort of facing them.
7:56 Attaching the script to arms and dealing with different rest positions and FOV angles;
9:16 How to prevent rotation along a particular axis.
9:52 Demonstration of functionality.
**********************************
Unity Player Controller documentation:
https://unity3d.com/learn/tutorials/t...
***********************************
https://www.megalomobile.com
***********************************
Watch video Field of View Auto-Aim Unity 3D Tutorial online without registration, duration hours minute second in high quality. This video was added by user Megalomobile 09 September 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 21,146 once and liked it 577 people.