rich_lord Posted March 6, 2017 Share Posted March 6, 2017 (edited) Im making constraints based on impacts in DOP's. I've got it all worked out except for the fact that I get so many impacts, i'm making way too many constraints. I can see that i'm getting sometimes 6 impact points that represent one collision, 3 for one of the objects and 3 for the other. All the impacts are exactly the same except for the impulse attribute. So, I need to find a good way to filter this. I'd like to end up with just one point representing each collision, but I'm not sure how to achieve this. I tried writing a complex nested set of for loops to test for similar collisions, but it got complex and slow. The DOP Impact Analysis doesn't do what I want as I don't want to use a threshold to filter the impacts, I just always want the strongest impact. I'd really appreciate any tricks to deal with this. Edited March 6, 2017 by rich_lord Quote Link to comment Share on other sites More sharing options...
rich_lord Posted March 7, 2017 Author Share Posted March 7, 2017 (edited) Ok, Just 2 days to figure this out! I tried so many things, but ended up just using a foreach SOP to step through each constraint and compare it. Its not the fastest...... I also do the same thing on the initial impact points too, which seemed to be a little faster as I cull some points before I even build the constraint. The constraints are currently just made at the center of each rbd, but its easy to shift it to the exact point by using the info in the DOP Impacts. Get the hip here - http://richardlord.tumblr.com/post/158126297816/hipfile-making-collisions-based-on-impacts-is-way Edited March 10, 2017 by rich_lord 3 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.