Uploaded May 2022 | Updated November 2026, 1 day ago
At this point I found a much more robust method: youtu.be/GTRloXAZ-gg
The method shown in this video turned out to be flawed as well since it can cause issues with framerate dependence. using a delta time multiplier also doesn't solve the issue since the character movement component has it's internal way of handling timing.
This still works as a quick and dirty solution that alleviates some issues the launch character node has, however I would recommend using the force root motion method I found after this.
It does require C++ though and is a bit of a pain to set up, but once you have it up and running it's hands down the best method.
youtu.be/GTRloXAZ-gg
Support the channel on Patreon:
patreon.com/CobraCode
There was a roll animation set free on UE marketplace in the past, so you might already have this in your library: unrealengine.com/marketplace/en-US/product/rolls-and-dodges-animation-set
If you enjoyed this video, please subscribe: youtube.com/channel/UCoKYIjbaEX4mnR8IWwtuBwA?sub_confirmation=1
● Twitter: twitter.com/CobraCodeDev
● Discord: discord.com/invite/7VVeuZBy42
Timecodes:
0:00 Intro
0:37 Implementing the dodge roll movement
6:23 Switching over to the dash step
8:10 About the launch character method
9:12 About the root motion method
Awesome root motion example on twitter:
twitter.com/QuodSoler/status/1520467784987201536
Used Assets:
Icons made by Freepik (https://www.freepik.com) from Flaticon (flaticon.com/)
#cobracode #gamedev #madewithunreal #indiedev #gamedevelopment
At this point I found a much more robust method: youtu.be/GTRloXAZ-gg
The method shown in this video turned out to be flawed as well since it can cause issues with framerate dependence. using a delta time multiplier also doesn't solve the issue since the character movement component has it's internal way of handling timing.
This still works as a quick and dirty solution that alleviates some issues the launch character node has, however I would recommend using the force root motion method I found after this.
It does require C++ though and is a bit of a pain to set up, but once you have it up and running it's hands down the best method.
youtu.be/GTRloXAZ-gg
Support the channel on Patreon:
patreon.com/CobraCode
There was a roll animation set free on UE marketplace in the past, so you might already have this in your library: unrealengine.com/marketplace/en-US/product/rolls-and-dodges-animation-set
If you enjoyed this video, please subscribe: youtube.com/channel/UCoKYIjbaEX4mnR8IWwtuBwA?sub_confirmation=1
● Twitter: twitter.com/CobraCodeDev
● Discord: discord.com/invite/7VVeuZBy42
Timecodes:
0:00 Intro
0:37 Implementing the dodge roll movement
6:23 Switching over to the dash step
8:10 About the launch character method
9:12 About the root motion method
Awesome root motion example on twitter:
twitter.com/QuodSoler/status/1520467784987201536
Used Assets:
Icons made by Freepik (https://www.freepik.com) from Flaticon (flaticon.com/)
#cobracode #gamedev #madewithunreal #indiedev #gamedevelopment






![HITSCAN vs PROJECTILE | Explanation and Unreal Engine Implementation [UE4/UE5 EA2]
Support the channel on Patreon:
https://www.patreon.com/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 dont 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: http://www.youtube.com/channel/UCoKYIjbaEX4mnR8IWwtuBwA?sub_confirmation=1
● Twitter: https://twitter.com/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]](https://i.ytimg.com/vi/pWIJlsqli1w/mqdefault.jpg)



