Intro to the Vector Dot Product: How to code a Field of View in Godot

Опубликовано: 10 Июнь 2017
на канале: GDQuest
43,616
1k

Learn how to use the vector dot product to detect if an enemy is within the player’s cone of vision or FOV.
Make Professional 2d Games (Kickstarter): https://gdquest.mavenseed.com/courses
----
The source project: http://bit.ly/intro-to-dot-product

Vectors are essential when it comes to 2-D game creation. We talked about arithmetics. it’s time to go one step further with the dot product. You can not only use it to get the exact angle between 2 vectors using trigonometry: it also helps to detect whether 2 characters are facing the same direction or away from one another.


New tutorial every day until June 22! 19/30
The playlist:    • Godot 2.1 Tutorials  
Project sources on Github: https://github.com/GDQuest/Godot-30-d...

This tutorial is supported by:
- Gamblify: https://www.gamblify.com/
- Pineapple Works: http://pineapple.works/
- Play it Forward Space

Subscribe to the channel now and become a member of the community! https://youtube.com/c/Gdquest?sub_con...

Follow GDQuest on:
Twitter:   / nathangdquest  

This video is licensed under the CC-By 4.0 license: https://creativecommons.org/licenses/...

You can attribute it to "GDQuest and contributors - https://www.gdquest.com/"


Смотрите видео Intro to the Vector Dot Product: How to code a Field of View in Godot онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь GDQuest 10 Июнь 2017, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 43,616 раз и оно понравилось 1 тысяч людям.