Combat and melee techniques
I've been researching melee and combat techniques and tutorials but so far I can't really wrap my head around it. I don't mean the hack and slash style combat but more 3rd person combat. I figured it'd be as simple as adding colliders onto the weapons but from what I researched that isn't the case apparently. So what method should I use?
$$anonymous$$oved this to the Help Room Area. It doesn't fit in well with the main UA area (see the FAQ,) and is a repeat of older similar questions (but you may not know the terms to use to look them up.)
Answer by LaneFox · Aug 27, 2015 at 12:42 PM
There are quite a few ways to do it but it certainly is not as simple as just adding a collider to the weapon.
1) You can add a Collider to the weapon, slave it to the Hand and play Animations. But..
You will need to ignore collisions with the wielder.
You will need to polish the animations quite well because the volume will more precise.
You will probably need to turn the collider on/off at the proper time in the animation to prevent 'touching' damage.
2) You can make a static volume (or cast) in front of the player which turns on/off/activates based on if the weapon is attacking, but...
You will have less accurate volumes
You will still need to time the damage dealing with the animation in some fashion
You could use a Spherecast or something here instead of a trigger volume.
Without more specifics of what you're trying to do it's a bit difficult to recommend something for you, but these are two common approaches.
Your answer
Follow this Question
Related Questions
Melee combat sword system 1 Answer
melee system, does not apply the damage and two attacks 1 Answer
Melee Area Attack - Object reference not set to an instance of an object 1 Answer
Having trouble with melee attack script 1 Answer
Unity Melee Attack Problem / Atak problemi var yardım edin :( 0 Answers