Sign in to follow this  

Mesh intersections...

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

This topic is 3847 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this