hoknamahn Posted August 13, 2006 Share Posted August 13, 2006 For example I have two wire objects which moves one around other. Sometimes they collides each other. So how to get an information about where the collision happen (in other words how to get the attribute value (say U coordinate) from wire object in the place where collision happen)? Quote Link to comment Share on other sites More sharing options...
peship Posted August 19, 2006 Share Posted August 19, 2006 the collision happens on the points of the wires so you will need to read the collision radius of each point and then to check if the distance between each two of them is smaller or equal than the sum of their collision radiuses, if that's the case - then collission occures. to get the exact position of the point, where the collision "spheres" of those two points penetrate, you will need some vector math to figure it out. The first thing coming in mind is to build a lookAt vector from one of the points, pointing to the other one. Then use it as local coordinate system to project the radius of the collision sphere along the aimAxis of this vector. Finally you will need to convert what you have got to world space coordinates in order to get something real to start from. Kind of not so production ready approach. But maybe there are easier ways to do all that. ( going to check DOP docs ) Quote Link to comment Share on other sites More sharing options...
hoknamahn Posted August 19, 2006 Author Share Posted August 19, 2006 Thanks peship! I should try. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.