HITSCAN vs PROJECTILE | Explanation and Unreal Engine Implementation [UE4/UE5 EA2]

Опубликовано: 30 Октябрь 2021
на канале: Cobra Code
20,471
704

Support the channel on Patreon:
  / cobracode  

In this video I give an in depth explanation of how hitscan and projectile weapons function and how they differ.
I made this video using Unreal Engine 5 Early Access 2 and the First Person Template has changed a lot since then, so the implementation part in the video might be hard to code along to for beginners now.
The biggest change is that the functionality is now split between the first person character and the gun. Instead of using InputAction Fire on the character, we must now use OnFireProjectile in the BP_Rifle to attach our hitscan functionality to. Also all the vr functionality is gone by default so there is no need to delete the nodes shown in the video.
Also when getting the shooting direction for the hitscan we don't have a reference to the camera inside the bp_rifle so we need to use our FirstPersonCharacter Reference and the FirstPersonCamera on it.
Since so many things have changed I might want to revisit and redo this tutorial in the future!

● Subscribe:    / @cobracode  
● Twitter:   / cobracodedev  

Timecodes:
0:00 Start
0:15 Hitscan Shooting Explanation
0:43 Projectile Shooting Explanation
1:12 Hybrid implementation in current games
2:21 Breaking down the differences between Hitscan and Projectile
3:29 Project Setup
4:18 Projectile Implementation
7:44 Hitscan Implementation

Icons made by Freepik (https://www.freepik.com) from Flaticon (https://www.flaticon.com/)

#cobracode #gamedev #madewithunreal #indiedev #gamedevelopment


Смотрите видео HITSCAN vs PROJECTILE | Explanation and Unreal Engine Implementation [UE4/UE5 EA2] онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Cobra Code 30 Октябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 20,471 раз и оно понравилось 704 людям.