Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • ai_09_targeting_system.zip

Missing 1 full-res photo, 1 file, as this post has not yet been imported.

Files

Previews only

Unity Ai Target Selection using sensory memory module [AI #09]

This Unity tutorial covers how to perform target selection for the Ai. Target selection is done through the use of a sensory memory module. Memories are evaluated and given a score by the targeting system. The memory with the highest score will be selected as the best target. Project files available here! ► https://www.patreon.com/thekiwicoder Follow Me: ► Discord: https://discord.gg/dX4trAG/ ► Patreon: https://www.patreon.com/thekiwicoder/ ► Twitter: https://twitter.com/the_kiwicoder/ ► Instagram: https://www.instagram.com/thekiwicoder/ ► TikTok: https://www.tiktok.com/@thekiwicoder/ ► TheKiwiCoder: http://www.thekiwicoder.com/ Kia ora! 0:00 Recap: 2:15 Sensory Memory: 3:39 Targeting system: 7:08 Forgetting Memories: 8:43 Score Evaluation: 9:58 Target Selection: 14:35 Creating C# Properties: 15:42 Removing Dead objects: 16:40 AiStateMachine Integration: 17:25 Bug Fixes: 21:19 Ka kite!: 24:12 #unity #ai #targetselection #thekiwicoder Thank you! TheKiwiCoder

Comments

TheKiwiCoder

Hey, you could set up second layer so you have two, e.g CharacterA & CharacterB. Then adjust the sensor layers to only include the opposite team. You could do this via script, or manually in the inspector. This will mean the sensor will only pick up characters from the opposite team. The targeting system shouldn't need any changes.

Sid

Wgich version of unity should i run the project files on

TheKiwiCoder

Hey, Unity Hub displays the version that should be used when you add the project. Do you see it?