Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Immovable Objects not triggering...

Discussion in 'Editor & General Support' started by Redz0ne, Aug 24, 2012.

  1. Redz0ne

    Redz0ne

    Joined:
    Oct 19, 2010
    Posts:
    332
    So, something i've noticed... when i have triggers that don't move but are intersecting, they don't trigger (when i need them to.)

    workaround would be to have them moving but for some objects, this is not feasible.

    any suggestions on how to work around this?

    Example... I have an object that is a "fire" that spawns when a fireball is cast... i need to tell it to inflict a "burning" status but if the object that it's supposed to trigger (in this case, it's a "scarecrow" target for testing purposes) is immobile, it's not detecting the trigger event. i've tried when it's entered and when it's staying and if the object lays perfectly still, it doesn't detect the trigger.

    I would like to find a way around this because if this becomes a known bug in my game, players that are attacking each other with this will just sit perfectly still to be able to avoid getting "burned."
     
  2. fransh

    fransh

    Joined:
    Sep 15, 2010
    Posts:
    91
    How can this situation ever happen? A trigger hits an other trigger by instantiating inside of it, or when it is moved within that trigger. In both situations a trigger event should be fired.

    Do you have it checking a tag in your current script?
     
  3. Swearsoft

    Swearsoft

    Joined:
    Mar 19, 2009
    Posts:
    1,621
    Yes, this shouldn't be happening. A trigger-enter event is sent to both objects when either one intersects the other, even if they are immobile, at least on of them has to have a RigidBody component on it.
     
  4. frank45

    frank45

    Joined:
    Apr 23, 2012
    Posts:
    26
    you can use empty rectangular collider near your object .so if some other object passes out of that you will get your trigger..!!