rlewicki / MeleeTrace

Unreal Engine plugin that enables user to accurately trace melee hits in the game using interpolation between sockets defined directly on the character or weapon mesh.
https://www.unrealengine.com/marketplace/en-US/product/melee-trace
MIT License
54 stars 8 forks source link
game-development plugin ue5 unreal-engine unreal-engine-5 unreal-engine-cpp-plugin unreal-engine-plugin

Melee Trace

WikiMarketplace

The What

This is a fairly generic plugin that enables you to setup melee traces directly in your animation assets.

The Why

Within last few years I've been working on many prototypes that required functionality of melee weapon traces and every time I've been implementing this from scratch. I finally decided that it is a time to make it a plugin I can use myself in my prototypes as well as share it with community.

The How

High level description would be that the hit detection is ran by sphere traces of pre-defined radius between previous frame skeletal mesh socket location and current frame skeletal mesh socket location. The skeletal mesh component can be either the character mesh itself or any other attached skeletal mesh e.g. weapon. For more detailed description and break down how it works please refer to the wiki page.

Community example projects

Feature requests

Feel free to request features that you would like to be implemented as part of this plugin as GitHub issues.

Gallery

Melee tracing hitting a dummy target

https://github.com/rlewicki/MeleeTrace/assets/10658394/7e581fde-2211-4446-937c-5a01991a356f

https://github.com/rlewicki/MeleeTrace/assets/10658394/5208180e-68ad-43de-b1ac-ec7c78bb2978

Misc attack animations

https://github.com/rlewicki/MeleeTrace/assets/10658394/fb3e26db-8bda-4fb7-af0a-2c30fe1aac58

Credits

Animations used in the gallery videos and sample projects are made by ZzGERTzZ, you can purchase them in on Marketplace here.