Question by
dhood2 · Mar 22, 2018 at 05:20 PM ·
unity 2dreflection
Why does my reflection script not work?
I cannot seem to get my projectile, (a 2D circle with a 0 gravity rb2d and a circle collider) to reflect off at any angle (I could get it to reflect off perpendicular angles on a previous version of this code where I just changed z rotation to -z on collision), however all that happens on collision is inNormal.x changes to -1, and my inDirection changes to (0,0) because it hits the wall and stops.
(my velocity script accelerates up to a predetermined max speed and keeps a constant velocity there however that is in a different script.) Any help is apprecated
capture.png
(21.2 kB)
Comment
Your answer
Follow this Question
Related Questions
how to make shiny floor 1 Answer
Remove Point Light from Reflective Surface 0 Answers
Converting Cubemaps to Panoramic images? 0 Answers
Disable reflections on objects 1 Answer