Search Unity

Anyway to know edge of Hexagon collided with? 2D

Discussion in 'Physics' started by Deeeds, May 20, 2018.

  1. Deeeds

    Deeeds

    Joined:
    Mar 15, 2018
    Posts:
    739
    If a ball hits a hexagon, polygon shaped collider, is there any way to know which the 6 edges was hit?
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,455
    Calculate the angle of the collision normal should tell you which face.