1. #1

    Hit trigger not working with certain objects

    I'm not sure if I'm doing something wrong or if this is a bug. It seems like the hit trigger doesn't work at all with certain objects. For instance...

    Here's a simple setup:

    - Rock is set to physics on with physics type "no contact response".
    - The hit trigger has everything to default, except with "set hitting objects 2" I've selected the instance of the rock.

    With this setup, it works fine.

    Here's the exact same setup with a different object:

    Which does not work. If I set "set hitting objects 2" to be any dynamic object instead of manually selecting the instance of the object, it still does not work.

    Anyone able to get this setup to work at all? Is this a bug, or maybe a technical limitation?
    Share this post

  2. #2

    Re: Hit trigger not working with certain objects

    Maybe a 1-tick Impulse Trigger into the Hit Trigger for quicker hit detection? Dunno...
    Share this post

  3. #3

    Re: Hit trigger not working with certain objects

    I'm pretty sure hit triggers are checked every tick. I can't even link an interval trigger to it anyway.
    Share this post

  4. #4

    Re: Hit trigger not working with certain objects

    Are you finding that the piano object in particular doesn't register hits? Have you tried other setups with pianos to see how far-reaching that problem might be?

    I wonder if it might have a badly constructed hit box?
    Share this post

  5. #5

    Re: Hit trigger not working with certain objects

    I've been going through objects and it seems pretty random which objects does not work. I've tested maybe 10 or objects and I've also found car parts->body and UFO to also not work.

    I think you might be right about it being hitbox related. It seems objects you'd expect to have more complex hitbox (a simple sphere or rectangle wouldn't be enough) aren't compatible with the hit trigger.
    Share this post

  6. #6

    Re: Hit trigger not working with certain objects

    Strange. Sounds like the problem objects are heavily represented in the "small objects" category.

    I think I found a rotation anomaly on one object, but I'm going to test more before I report.
    Share this post

  7. #7

    Re: Hit trigger not working with certain objects

    I know it's a pain, but you could always glue a dummy object to the bottom of the affected objects. That should set off the hit trigger.
    Share this post

  8. #8

    Re: Hit trigger not working with certain objects

    That's actually a pretty good idea, James.
    Share this post

  9. #9

    Re: Hit trigger not working with certain objects

    Yeah, that's a good idea. If I use a wide plank, make it invisible and position it in the middle of the piano, then that should work. I was also pondering some kind of solution where I calculate the position between the rider and the piano, and then trigger if that distance is low enough. But gluing an object would be easier.

    Edit: Glue didn't work afterall, I get the same problem. However "gluing" them using object position events works fine.
    Share this post