playMaker

Author Topic: Finding angle on a slope 2d  (Read 1408 times)

RC

  • Full Member
  • ***
  • Posts: 148
Finding angle on a slope 2d
« on: October 12, 2016, 10:27:26 PM »
Hi,

Can someone help me out on how I can find the angle on a slope?
This is how I did it, but the return angle is wrong.

Raycast 2d get normal
get atan from vector 2 "grab it from raycast normal"

thanks.


RC

  • Full Member
  • ***
  • Posts: 148
Re: Finding angle on a slope 2d
« Reply #1 on: October 14, 2016, 10:16:25 AM »
Hi. I have you found Jean sample "align to floor" it's exactly how I would like to be able to do it, but instead in 2d.. thanks