Search Unity

2d check for close combat hit

Discussion in 'Scripting' started by Lautaro-Arino, Jan 12, 2014.

  1. Lautaro-Arino

    Lautaro-Arino

    Joined:
    Sep 18, 2013
    Posts:
    93
    To check if a kick or sword slash has hit anything i can think of two options. Id like opinions about these as i have very limited experience of game programming.

    1. Use a child GameObject as a collision detector
    2. Use Circle Overlap to get a list of objects overlapping circle where the attack hits.