- Home /
how can i determine the angle of the face of an object relative to the world?
for example: an equilateral triangular prism, would have 45 degrees on the equal faces, and 90 on the others
This is a pretty general question that is difficult to answer without more information. You can Raycast() against an object. The RaycastHit()returned as the normal to the triangle in the mesh hit. You can also process the 'normals' array in the mesh. In general every triangle in a mesh is a potential face.
Your answer
Follow this Question
Related Questions
Finding the x and y of Mathf.Atan2 after converted to degrees 1 Answer
getting udp package info inside unity (GlovePIE) 0 Answers
user input azimuth and elevation angle. Need Urgent Help 0 Answers
Trouble coding a peeking system like in Rainbow Six Siege??? 1 Answer
How do I orient a 2D character to the ground/obstacles normal? 0 Answers