Back to Browse

Unity Create a Game Series (E03. enemies)

96.1K views
Sep 19, 2015
12:59

In episode three we create an enemy to chase the player around. FAQ: Q: QueryTriggerInteraction does not exist in the current context? A: Upgrade to Unity 5.2+, or leave that parameter out and turn on raycast triggers in the physics settings (edit - project settings) Q: Why use raycasts instead of OnTriggerEnter to detect projectile collisions? A: At very high projectile speeds OnTriggerEnter might not be called (since the projectile would be in front of enemy one frame, and through it the next). Raycasting just makes sure that collisions will work no matter the projectile speed. Source code: https://github.com/SebLague/Create-a-Game-Source Follow me on twitter @SebastianLague Support my videos on Patreon: http://bit.ly/sebPatreon

Download

1 formats

Video Formats

360pmp414.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Unity Create a Game Series (E03. enemies) | NatokHD