playMaker

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

Six66

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Finding angle on a slope 2d
« on: October 12, 2016, 07: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.


Six66

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Re: Finding angle on a slope 2d
« Reply #1 on: October 14, 2016, 07: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