- Home /
Normal vector from collision?
I'm implementing wall jumps but I'm not using a character controller so I can't use those special functions. How can I derive the normal from the collision that comes out of OnCollisionStay() or OnCollisionEnter()?
               Comment
              
 
               
              Answer by LCStark · Oct 01, 2018 at 06:56 AM
Use Collision.contacts (or Collision2D.GetContacts) to retrieve your contact points. Both ContactPoint and ContactPoint2D have a normal property.
Your answer
 
 
             Follow this Question
Related Questions
How to stop meshes from penentrating each other 0 Answers
MeshCollider Failure at high velocities 0 Answers
Using your own mesh for collision? 2 Answers
Generating a convex hull 3 Answers
Checking collisions between two objects that don't have rigidbodies 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                