Announcement

Collapse
No announcement yet.

event HIT won't fire in vr

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

    [OCULUS] event HIT won't fire in vr

    I'm having some issue where my stick will only fire event overlap
    but I need it to fire the hit event on my drum.
    I do believe my drum and motioncontroller drumstick are setup right but its not firing hit at all.
    and the hit event in the drum that is NOT firing.

    What is wrong? is this a bug in 4.24?


    here is all my collision settings,

    stick:

    Click image for larger version

Name:	Screenshot_2.png
Views:	283
Size:	529.0 KB
ID:	1729966


    drum:

    Click image for larger version

Name:	Screenshot_6.png
Views:	284
Size:	294.6 KB
ID:	1729967
    Attached Files
    Matt Walton: Programmer and owner of WireLiteSoft Games.

    [Streaming Terrains][WireLiteSoft.us]

    #2
    Hi, looking at you screenshots it all seems to be set up properly. The only thing I'm wondering is if also the drum stick should be set to Collision Enabled (Query and Physics) so to generate hit events.
    DownToCode Website

    VR Debug Plugin - Debug your VR game/application inside VR

    Email Plugin - Send emails from one email address to another.

    FREE VR Content Examples - A bunch of VR examples to get you started and for free.

    Comment


      #3
      Originally posted by DownToCode View Post
      Hi, looking at you screenshots it all seems to be set up properly. The only thing I'm wondering is if also the drum stick should be set to Collision Enabled (Query and Physics) so to generate hit events.
      it says in documentation it only needs to be on 1 of the actors that are colliding for the event HIT to fire. since the drum its self is simulating physics and has the collision needed it is
      what should be firing hit. I have tried setting it on both, when set on both the drumstick's collision capsule collision flies away into space and mother/child relationship is lost.
      the collisions are setup properly, yet the event its self in 4.24 is not firing at all.
      Matt Walton: Programmer and owner of WireLiteSoft Games.

      [Streaming Terrains][WireLiteSoft.us]

      Comment


        #4
        Did you have any luck figuring this out? I am in a similar situation trying to get a taiko drum to respond to EventHits from sticks. For the time being I am taking the sticks out of the equation and just relying on Eventoverlaps from the players hands.

        Comment


          #5
          Originally posted by Nozaj View Post
          Did you have any luck figuring this out? I am in a similar situation trying to get a taiko drum to respond to EventHits from sticks. For the time being I am taking the sticks out of the equation and just relying on Eventoverlaps from the players hands.
          nope. have not found out why. i did submit a bug report. hope a dev comes here and has a fix for it.

          VictorLerp
          Matt Walton: Programmer and owner of WireLiteSoft Games.

          [Streaming Terrains][WireLiteSoft.us]

          Comment


            #6
            Hits are for two primitives that both simulate physics - the collision you're using on the stick is attached to the motioncontroller, and as such not simulating physics. If it was attached with a physics constraint, the hit event would fire. Try to use OnBeginOverlap instead

            Comment


              #7
              Originally posted by VictorLerp View Post
              Hits are for two primitives that both simulate physics - the collision you're using on the stick is attached to the motioncontroller, and as such not simulating physics. If it was attached with a physics constraint, the hit event would fire. Try to use OnBeginOverlap instead
              Nevermind i found a work around!
              Last edited by frostic; 03-21-2020, 03:36 PM.
              Matt Walton: Programmer and owner of WireLiteSoft Games.

              [Streaming Terrains][WireLiteSoft.us]

              Comment


                #8
                Originally posted by Nozaj View Post
                Did you have any luck figuring this out? I am in a similar situation trying to get a taiko drum to respond to EventHits from sticks. For the time being I am taking the sticks out of the equation and just relying on Eventoverlaps from the players hands.
                Are you trying to do velocity hit? if you ARE then do as victorlerp said and use EventBeginOverlap.

                the overlap event:

                Click image for larger version

Name:	Screenshot_11.png
Views:	138
Size:	82.5 KB
ID:	1735405

                then to use the impulse to get the speed I set the volume like this:

                Click image for larger version

Name:	Screenshot_12.png
Views:	106
Size:	51.5 KB
ID:	1735406


                Impulse is the speed of the drum stick default = 0

                Max Velocity = 700

                Max Volume = 4

                these seem to be the best settings for the volume of my samples.


                ​​​​​​​Hope this helps!
                Matt Walton: Programmer and owner of WireLiteSoft Games.

                [Streaming Terrains][WireLiteSoft.us]

                Comment


                  #9
                  Thanks for the help! I'll give that a try later on today

                  Comment

                  Working...
                  X