x


Return the intersecting vertices of two colliding objects

I have a cube (RigidBody) and a plane(mesh) that are colliding. I want to be able to return the array of intersecting vertices in which these two objects are colliding. Is there a function that I can use?

more ▼

asked Feb 10 '12 at 08:19 PM

cchan gravatar image

cchan
16 3 3 5

(comments are locked)
10|3000 characters needed characters left

1 answer: sort newest

There is no function to do anything like that, you'll have to use... math.

What do you mean by "intersecting". A plane is a 2D object, so there's no volume for a vertex to be in. Do you mean you want to detect which vertices are on the other side of the plane?

This is pretty simple if you don't care about speed too much. You'll wanna run this math for every vertex you want to check http://mathworld.wolfram.com/Point-PlaneDistance.html

more ▼

answered Feb 11 '12 at 02:07 AM

Mortoc gravatar image

Mortoc
915 2 7 14

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1396
x143
x140
x4

asked: Feb 10 '12 at 08:19 PM

Seen: 543 times

Last Updated: Feb 11 '12 at 02:07 AM