Jump to content
  • Advertisement
Sign in to follow this  
ThunderSoul

Mesh intersections...

This topic is 4057 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

Hi... I have a question on Mesh.Intersect(Vector3, Vector3) for C#? What are the inputs for each vector? pointA ------- X ------- rayPos Mesh.Intersect(rayPos, rayPos - pointA) or Mesh.Intersect(rayPos, pointA)? Also, if I have a single mesh that I dupe a few times and use Intersect, it only works for the original mesh, correct? Thank you...

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by ThunderSoul
Hi...
I have a question on Mesh.Intersect(Vector3, Vector3) for C#?

What are the inputs for each vector?

pointA ------- X ------- rayPos
Mesh.Intersect(rayPos, rayPos - pointA) or Mesh.Intersect(rayPos, pointA)?


Also, if I have a single mesh that I dupe a few times and use Intersect, it only works for the original mesh, correct?

Thank you...


Personally I can't remember whether you need to pass the length or destination, so might be worth using both test values and see what the result is each time or see what the dx help says in regards to the function itself. It's what I did when I dabbled with intersection a while back.

And yes, the intersection will only test the mesh being tested on.

EG.
mesh2 = mesh1;
mesh1.Intersect ....
mesh2.Intersect ....

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!