Getting started with Agent Sensing in Unity, Live Tutorial (C#)

Publié le: 01 janvier 1970
sur la chaîne: Virtual Play
660
24

The first part of this tutorial is useful if you know programming but are new to Unity.
I show an effective way to implement agent sensing in Unity.

Files created during the stream will be available soon, check back here.

NOTE: The ConeCast script is actually not the most efficient way to check for objects in the frustum, instead we can do a Physics.OverlapBox followed by a check with GeometryUtility.TestPlanesAABB - I will post a link to the code for this here soon.


Streamed together with an Artificial Intelligence class of Utrecht University of Applied Sciences (HU).
For more info and enrollment: https://www.hu.nl/voltijd-opleidingen... (in Dutch)

Timestamps:
0:00 Pre-stream roll
2:44 Welcome / Intro
4:00 Creating a project in Unity
6:27 Unity Editor overview
8:37 Install Auto Save Scene
10:25 Folder organization
11:59 Explanation of Agents and Sensing
17:40 Adding agent and floor object / Coordinate system
20:09 Camera angle / Object hiding/locking
21:46 Terrain texture
23:30 Finding objects
23:43 Objects, Components, Renaming
25:02 Adding enemies / Materials
27:10 Prefabs
29:35 Adding obstacles
31:40 Scripting / Compiling / Updating Packages
34:34 About C# / Creating Scripts
36:30 Colliders
39:02 Visual Studio / C# code standards
41:36 Starting sight: Gizmos
47:50 Exposing variables to the Inspector
51:49 Update vs. FixedUpdate / Play mode
55:02 Sphere overlap check / Layers / Layer Masks
59:39 Log Debug messages to the Console
1:02:42 Checking for newly and no longer detected objects / HashSet
1:11:28 When to update your State/Reasoning
1:12:15 Adding Line of Sight check / Raycasts / 'out' parameters
1:17:40 Gizmos for sensing feedback / if isPlaying check
1:21:18 Checking objects in a cone
1:23:01 Cone end radius calculation
1:25:31 Finishing the cone cast / Renaming variable in Visual Studio
1:28:22 Trying to debug ConeCast use, see description
1:31:05 Wrapping up the ConeCast, commentary/test
1:32:10 Modality / Enums / Flags attribute / Bitmask
1:34:36 Adding Sight to the Agent / 'internal' access / TODO comments
1:38:18 GetComponent vs. component references
1:39:41 C# events+delegates
1:48:30 Moving objects / Time.fixedDeltaTime
1:50:03 Spawning objects from Prefabs / Random position on circle
1:57:54 Wrapping up / Outro music


Sur cette page du site, vous pouvez voir la vidéo en ligne Getting started with Agent Sensing in Unity, Live Tutorial (C#) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Virtual Play 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 660 fois et il a aimé 24 téléspectateurs. Bon visionnage!