Rebounding object on polygon

Hi ! im trying to do a simple obstacle engine, wich will make on colliding bouncing an object against a polygon. there is no gravity.

i m really struggling:

  • to get the correct angle of rebound from vector of the colliding object and the line its meeting
  • i dont see how to set the rebound in terms of logic. i m really missing something about affecting the rebounce to the position of the object

Thanks for your help !
LLC_ColliderAndObstacles MouseOnly(Help).vl (25.4 KB)
LLC_ColliderAndObstacles.vl (162.5 KB)