hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Hexagon Collison: Which side?

    Scheduled Pinned Locked Moved
    Help and Support
    3
    3
    132
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Deeeds
      last edited by

      Is there anyway to know which side of a hexagon a ball hits?

      iTap DevelopmentI 1 Reply Last reply Reply Quote 0
      • MurtazaM
        Murtaza Admin
        last edited by

        The Collided behaviour outputs the x/y positions of where a collision happens. But you'd need to do some math to figure out which side of your object that is.

        1 Reply Last reply Reply Quote 0
        • iTap DevelopmentI
          iTap Development @Deeeds
          last edited by

          @Deeeds well the collision behavior only has up down left right, so you would probably have to build yourself.
          You could use the collision point and the object position and find the angle between the two points to find the side. Shouldn’t be too hard.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post