Announcement

Collapse
No announcement yet.

Problem with getting normal of ground and rotation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem with getting normal of ground and rotation

    Hi guys, im trying to set the rotation of a mesh to the direction of the normal of the ground(also a mesh). I managed to get the normal angle, but it only gets positive numbers.

    Here is an image to ilustrate my problem:
    Click image for larger version

Name:	1.PNG
Views:	1
Size:	118.6 KB
ID:	1207800
    First angle is correct, it is 45. But the second it spits out 45, when i should get (if i did it right jaja) -45.
    Click image for larger version

Name:	2.PNG
Views:	1
Size:	138.8 KB
ID:	1207801

    This is how im getting the normal:
    Click image for larger version

Name:	n.PNG
Views:	1
Size:	163.1 KB
ID:	1207799

    How can i fix this problem?

    Thanks!
Working...
X