In this module, we are going to animate the Pokéballs to open up, capture a Pokémon and close again. However, we also want the Pokémon to have a fair chance at escaping.
Goals
Know how to create a particle system in Unity
Know how to use tags to locate objects in the game space
Understand collision events
Apply Vector dot products
Understand co-routines
Use the Unity Random class to generate a pseudo-random number
Know about Unity VFX Graph
Timestamps
0:00 Intro
0:25 Creating a Pokémon tag
2:33 Colliders, Rigidbodies and Kinematic Rigidbodies
5:24 Creating more controller scripts
6:47 Collision Events
15:40 Animation reference
16:06 Pokéball bounce
21:55 Suspend the Pokéball in the air
23:44 Rotate the Pokéball and open it
33:18 Creating a particle system prefab
43:40 Instantiating and destoying the particle system
53:13 Rotate to the player and drop down
56:46 Fine-tune the character controller
57:24 Implement the triple wiggle
1:05:05 Capture or escape logic - Part 1
1:12:06 Coroutines
1:14:58 Capture or escape logic - Part 2
1:19:52 Wrap-up