I want to make a hitbox for my melee weapon that doesn't need to make use of the parts in the weapon, i want it to make the hitbox when the attack is made and then delete it when it ends.What kind of system should i use to do that?Region3?OnTouch?RayCasting?Something Else?
✓ ANSWER ACCEPTED
How to create a hitbox that doesn't use the actual weapon pre-made parts?
1 answer
✓ Accepted answer
A nice approach to melee weapons is to cast short rays quickly and check for ray hits. These rays are casted from several points. I find this to be an accurate and viable method for hit detection. In fact you can make use of the RayCast Hitbox Module by Swordphin123, which makes the whole job much easier.
All you need to do with the module is learn how it's method work (given on the aforementioned page) and place attachments for each weapon -- which is the only real extensive job but you could generate them at increments.
Here's a visualisation of Swordphin's module in action: https://gfycat.com/fairsecondaryafricangoldencat
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
RayCast worked but some glitches, i guess i can fix them without so much problems, thanks!