Question by 
               Marklily · Jan 09, 2017 at 04:23 PM · 
                arrayoncollisionenterforeach  
              
 
              On CollisionEnter is not colliding with my transform array.
 void OnCollisionEnter(Collision collision)
     {
             if (collision.transform == slor) {
                 slice = true;
             }
             foreach (Transform i in holes) {
                 if (collision.relativeVelocity.magnitude > br)
                 {
                 if (collision.transform == i)
                 {
                     blid = i;
                     slice2 = true;
                 }
             }
         }
     }
 
               I want slice2 by first magnitude and then if the collider is one of the array i objects
               Comment
              
 
               
              Try putting in some Debug stuff to check all your variables and see what they're co$$anonymous$$g up as. if they're not co$$anonymous$$g out correctly, it might help you figure out what is wrong.
 Debug.Log("This is slice: " + slice);
                 Your answer
 
             Follow this Question
Related Questions
how to check all elements in array 2 Answers
collision.contacts not working, 0 Answers
Getting an array of Rigidbodies 1 Answer
Checking if a point is withing any of the colliders 1 Answer