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
***********************************
Смотрите видео Field of View Auto-Aim Unity 3D Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Megalomobile 09 Сентябрь 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 21,146 раз и оно понравилось 577 людям.