Announcement

Collapse
No announcement yet.

event hit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    event hit

    hey
    i have problem with event hit.

    if i understand it correctly it should trigger when 2 actors with "Simulation Generates Hit Events" ticked hits each other.

    so i have a room with ball rolling around. ball and walls have this option ticked, floor doesn't.
    so as i understand it event should trigger only when ball touches wall but it's triggering even when ball is touching the floor only and i have no idea why?

    any suggestions?

    #2
    That would be expected behavior. If the Ball has its collision set to block the channel that the floor's collision is set to (probably world static), then it should generate a hit event even if the floor does not generate hit events. You can change that by changing the collision channel settings. Let me know if this helps.
    Twitch /unrealalexander| Twitter @UnrealAlexander
    How to report a bug? | Installation & Setup issues?
    Call me to a thread by posting this: [MENTION]Alexander Paschall[/MENTION]

    Comment


      #3
      I tried to set it up somehow but all i had was the ball falling down through the floor ;s

      btw. what is this option for anyway if this event trigger even if it's not ticked?

      Comment


        #4
        Originally posted by ue4l5 View Post
        I tried to set it up somehow but all i had was the ball falling down through the floor ;s

        btw. what is this option for anyway if this event trigger even if it's not ticked?
        If you were to do a "Simulate" instead of "Play in Editor" the hit events would not trigger unless "Simulation Generates Hit Events" was enabled. If you are just running the game normally, it really does not matter.

        It sounds like you want the ball to land on the floor, but not register that as a hit, is that correct? If so, that won't technically work; the event "On Hit" sees all blocked collision as a hit. What you can do to get around that would be to set up a Branch immediately after the hit event to check if something besides the floor was hit. Here's an example of that:

        Click image for larger version

Name:	HitFloor.jpg
Views:	1
Size:	64.1 KB
ID:	1052518

        Let me know if that helps
        Twitch /unrealalexander| Twitter @UnrealAlexander
        How to report a bug? | Installation & Setup issues?
        Call me to a thread by posting this: [MENTION]Alexander Paschall[/MENTION]

        Comment


          #5
          i guess that will worl.
          meanwhile i figured it out and did that by using tags and it works as i want it

          Click image for larger version

Name:	hitwall.PNG
Views:	1
Size:	75.8 KB
ID:	1052548

          thanks anyway

          Comment


            #6
            Originally posted by ue4l5 View Post
            i guess that will worl.
            meanwhile i figured it out and did that by using tags and it works as i want it

            [ATTACH=CONFIG]6587[/ATTACH]

            thanks anyway
            Awesome! It's always cool to see all the different ways to solve a problem using Blueprints
            Twitch /unrealalexander| Twitter @UnrealAlexander
            How to report a bug? | Installation & Setup issues?
            Call me to a thread by posting this: [MENTION]Alexander Paschall[/MENTION]

            Comment

            Working...
            X