Box2D Forums

It is currently Sun May 26, 2013 12:57 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Collision impact force
PostPosted: Sat Jul 19, 2008 4:00 am 
Offline

Joined: Wed Jul 09, 2008 3:47 am
Posts: 37
Id like to make some bodies break if its health drop under 0. What best way to determine the impact damage to the body should i use? Now i am using the normal force from the contact result, but it is not always perfect, since results and normal forces are generated every loop, not only on impact. And ADD contacts does not have normal forces computed


Top
 Profile  
 
PostPosted: Tue Jul 29, 2008 10:22 am 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1518
Location: Tokyo
I haven't done this so I'm not sure, but couldn't you just make a note of when you get an 'add contact', and only use the result forces that occur during that world step?


Top
 Profile  
 
PostPosted: Sat Aug 09, 2008 3:09 pm 
Offline

Joined: Wed Jul 09, 2008 3:47 am
Posts: 37
But there may be more of them


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group