- Home /
Get angle to retarget collision object.
I'm trying to get a disc to reflect perfectly, but colliders themselves don't help as it makes it do realistic waving and stuff. I guess I need the angle of incidence of the collision to create the reflected angle orientation, but i'm lost as to how to do it.
http://i.imgur.com/OzagzGq.png
This is the behavior i'm looking for, mirror reflections
Answer by hexagonius · Oct 25, 2016 at 08:45 AM
Unity has a Vector3.Reflect method. Since a collision gives you more than one contact point and no surface normal, raycasting along the flight direction might get you the desired normal upon which you can reflect the flight directon.
Your answer
![](https://koobas.hobune.stream/wayback/20220612095355im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Resize Array Based on Value 2 Answers
Check for collision while animating 0 Answers
object isn't detecting collisions 1 Answer