- Home /
 
 
               Question by 
               RemDust · Apr 24, 2020 at 10:15 AM · 
                physics2dtriggerscollision2d  
              
 
              Get callback when trigger enabled inside other collider
Hello, When I enables my collider2D, the trigger doesn't fire if it is enabled inside the target collider... How can I fix this ? Already tried Rigidbody collisions continous :(
               Comment
              
 
               
              Answer by Triggerly · Apr 24, 2020 at 04:04 PM
Make a script and put it on your object that holds the Collider.
  void OnCollisionEnter(Collision col)
 {
     //  fire 
 }
 
              Answer by RemDust · Apr 24, 2020 at 04:16 PM
For people interested I manage to make it work by calling Rigidbody.WakeUp() right after collider.enabled to force the physics to check instantly for new collisions.
Hope it will help !
Your answer