1. #1

    What the...

    I just spent two hours trying to figure out why a hit trigger was sending an impulse even though the hit object was invisible ( Yes, physics was default, NOT - no contact response )
    Basically, I only wanted the hit effect when the object was visible but, it just wouldn't have it.
    I had to add an "enable" data source ( 1 or 0 thing ) on the hit trigger along with the visibility event of the hit object to make it work correctly.
    Why are so many things in Evo a bit ... hit and miss...
    Share this post

  2. #2
    Lukeyy19's Avatar Member
    Join Date
    Mar 2014
    Location
    UK
    Posts
    449

    Re: What the...

    Default: normal behaviour depending on visibility.
    Contact Response: collision even if invisible.
    No Contact Response: no collision, but will send impulses when hit.
    Decoration Only: object is visual only
    Share this post

  3. #3

    Re: What the...

    It was set as default... I only wanted the impulse triggered when the object was visible.
    I've sorted it out now ... there's always another way...
    Share this post

  4. #4
    Lukeyy19's Avatar Member
    Join Date
    Mar 2014
    Location
    UK
    Posts
    449

    Re: What the...

    Originally Posted by Cruelty976
    It was set as default... I only wanted the impulse triggered when the object was visible.
    I've sorted it out now ... there's always another way...
    default will toggle between Contact Response and No Contact Response depending on visibility, so the trigger would always be active, it was not a glitch, that's just how it's designed. Your method was probably the easiest way around it.
    Share this post

  5. #5

    Re: What the...

    lukey he's saying hit trigger even send impulses when the object was invisible when he had default

    i don't know why it does that though
    might be because you were changing between visible and invisible and when changing to invisible it kept its physics body

    you started invisible or visible?
    you tested if that make a difference?
    Share this post

  6. #6
    Lukeyy19's Avatar Member
    Join Date
    Mar 2014
    Location
    UK
    Posts
    449

    Re: What the...

    Originally Posted by sparkierjonesz
    lukey he's saying hit trigger even send impulses when the object was invisible when he had default
    I know he's saying that, that's how it's suposed to work, the only setting that won't send an impulse is Decoration Only, whether the item is visible or not.

    With the Physics Type set to default, a visible object effectively uses the "Contact Response" type, and turning it invisible will cause it to have the properties of 'No Contact Response' but both of these Physics Types still send an impulse to a hit trigger, so unless an an invisible item is set to Decoration Only, it will still send impulses when hit. This is a perfectly normal occurrence.
    Share this post

  7. #7
    Morfyboy's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    UK
    Posts
    8,183

    Re: What the...

    Originally Posted by Cruelty976
    It was set as default... I only wanted the impulse triggered when the object was visible.
    I've sorted it out now ... there's always another way...

    thats the good thing about the editor...there are quite a few different ways to achieve your goals...even if sometimes, as in my case alot, the logic is more than wot is needed...
    Share this post

  8. #8

    Re: What the...

    how about you use area trigger to activate the effect and also use it to turn on the visibility of the object? sounds like it would work .
    Share this post

  9. #9

    Re: What the...

    The trouble was that the hit trigger was activating and sending an impulse when the bike passed over the invisible hit object.
    I only wanted it triggering if the hit object was visible.
    It's sorted out now anyway.
    Thanks everyone for your thoughts and ideas.
    Share this post

  10. #10

    Re: What the...

    it's hit and miss cause that's the nature of impulses. On or off. 1 or 0. The trouble is always in finding where you goofed up. Luckily you fixed it swiftly this time.
    Share this post