Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Need help with Character collision

Discussion in 'Scripting' started by kazama0, Apr 22, 2019.

  1. kazama0

    kazama0

    Joined:
    Apr 22, 2019
    Posts:
    1
    Hi so I'm making a 3D fighting game on Unity and my FBX character don't have their body parts split. They only have body that I made into a humanoid but no fingers so I can't add or attach a sphere to their hands to be used as a fighting tools upon collision with another character because it doesn't attach to the body even though I tried to use hinged joins, fixed joints and other types with a rigid body.

    Would it be possible to make a script where my object touches another object and if a certain animation is played that it counts as an attack move and reduces the health bar? I'm new to Unity so I don't really know if this would be possible or not and how could I make this work?
     
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
    Yes, this is definitely possible. You'll need animation envents or curves to enable and disable attack/block colliders and you need to attach them to the skeleton, not to meshes. Watch some ragdoll tutorial to get an idea how.
     
    kazama0 likes this.