Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Feb 19, 2013 12:35 am 
Offline

Joined: Tue Sep 01, 2009 4:19 pm
Posts: 20
Hi guys
I was building a re-targeting engine following Chris Hecker's Spore paper then it occurred to me i could basically use the same Verlet system for my ragdoll.
I decided to follow Rick Baltman's GDC talk slide and paper to implement this.
http://www.docstoc.com/docs/37750453/ar ... 2004baltma
http://www.docstoc.com/docs/40467261/Ve ... -Degree-of

In his paper just like in Bullet there is this magic variable called Impulse Threshold.
When relative Impact speed < Threshold = rest
When relative Impact speed > Threshold = bounce
Any idea what this value is?
I used a value 0.025 in Unity3d and it was the closest i could match the built-in physX engine.

I scoured the box2d sdk and could not find a value for this either

That aside, In his paper he uses a spring system for resting contacts.
Code:
Vector3 Force_penetration = (K_Spring * penetration)  - (K_Damping * penetration_);

The spring and damper variables are equally a mystery to me.


Top
 Profile  
 
PostPosted: Tue Feb 19, 2013 2:20 pm 
Offline

Joined: Tue Sep 01, 2009 4:19 pm
Posts: 20
PS if there is a different way to do this please enlighten me.
It seems this method is based on a paper by Baraff


Top
 Profile  
 
PostPosted: Thu Feb 28, 2013 12:37 am 
Offline

Joined: Wed May 14, 2008 5:58 am
Posts: 38
They're just tuning values. They don't necessarily correspond to any real values for things (the damping and spring constants for resting contacts have real world analogies, except that resting contacts aren't really springs, so again the values are just for tuning). Play with the values until you get behavior you like.


Top
 Profile  
 
PostPosted: Sun Mar 03, 2013 8:54 am 
Offline

Joined: Tue Sep 01, 2009 4:19 pm
Posts: 20
So far i have managed to get the collision response (bounce) to match physx
but still lost on numbers to used for resting contact.

i current use value of 0.8f to 5.7f of K and s 0.001f - 3.65f


Top
 Profile  
 
PostPosted: Sun Mar 03, 2013 9:23 pm 
Offline

Joined: Tue Sep 01, 2009 4:19 pm
Posts: 20
I just ripped off Henge3D.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group