Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: RC on October 12, 2016, 10:27:26 PM

Title: Finding angle on a slope 2d
Post by: RC 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.

Title: Re: Finding angle on a slope 2d
Post by: RC 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