Jump to content
  • Advertisement
Sign in to follow this  

Discarding one dimension of a face and compare with the ground

This topic is 1189 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have discarded the y dimension of the face of a mesh.

quad::vec2 triangle[3];

triangle[0].x = triangle1[0].x
triangle[0].y = triangle1[0].z
triangle[1].x = triangle1[1].x
triangle[1].y = triangle1[1].z
triangle[2].x = triangle1[2].x
triangle[2].y = triangle1[2].z

// Compare extents between this triangle and the ground

Here I don't want to iterate the triangles/poly of the ground because it will be too expensive.

I'd like to use some math to compare the extents between the ground and the projected face.

What is the best way to do it?






Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!