View Full Version : Finding collision count?
is there a way of finding out how many times a rigid body has collided? I have tried using the "contactCount" command, but no luck
Ole Kristian
|
|
Aikiman
11-01-2007, 07:01 PM
HAve you clicked on 'Contact Data' on the rigid Solver? I've been looking into that and found that on the surface it appears to be flawed or returns data that doesnt make much sense. For example, you would expect the contact count data to go up incrementally after each time it hits a surface but this doesnt happen. Instead the cc will be greater than zero at the frame of contact, then go back to zero once the contact has finshed and the next time it hits it may be 5?? I read somewhere that this is probably due to it making contact 5 times in the same frame. So I think the best way to use cc is to create your if statement with it checking if cc is greater than zero then do something. Another workaround is to use a surface emitter on your rigid and use collision events through your particle instead.
Thank you for your reply. I have it working now. Wonder why they decided to do it like that...
CGTalk Moderation
11-02-2007, 03:30 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.