- Home /
 
               Question by 
               eclpsr · Jan 05 at 06:02 PM · 
                collisioncollideroncollisionentercollision.contacts  
              
 
              Unity3d Arkanoid platform collision problem
Hello dear friend! I have a working code, but it doesn't work as it should for the platform.
 velocity = Vector3.Reflect(velocity, collision.contacts[0].normal);
How to implement this idea? 

 private void OnCollisionEnter(Collision collision)
 {
     Debug.Log(collision.contacts[0].point.z);
 }
This function returns the platform's position, not the point of contact.
Thanks in advance, I hope you understand me.
 
                 
                bounce.jpg 
                (23.5 kB) 
               
 
                
                 
                collision-answer.jpg 
                (18.7 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
OnCollisionEnter 1 Answer
Character controller collision 2 Answers
How to get expanding object collide when it touches others? 1 Answer
Collision.contacts issue 1 Answer
2 objects collide, need to destroy one 2 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                
