Character with several colliders and rigidbodies

Posted by Lautaro on Game Development See other posts from Game Development or by Lautaro
Published on 2013-11-01T22:03:56Z Indexed on 2013/11/01 22:12 UTC
Read the original article Hit count: 255

Filed under:
|

I am doing a PvP fighting game. This is the GameObject hierarchy of the player character.

Player contains:

  • Legs
  • Sword
  • Torso
    • Head

I want to be able to

Register impacts of the sword on a specific body part Use AddForce on the whole player entity when a body part is struck Change the animation of the player that owns the sword that hit Questions

  1. Is it correct that the only rigidbody should be on the root Player GameObject ?
  2. Is it correct that The body parts should have colliders and be triggers ?
  3. Is it correct that The swords should have colliders but not be trigger ?

© Game Development or respective owner

Related posts about 3d

Related posts about unity