Hi, I am new here. Now I want to understand the damping in bullet. I think the damping is applied in following lines:
m_linearVelocity *= btPow(btScalar(1)-m_linearDamping, timeStep);
m_angularVelocity *= btPow(btScalar(1)-m_angularDamping, timeStep);
the relationship should be;
velocity_n+1 = velocity_n * (1-damping) ^ interval_time
the interval_time should be 1/60 s
My question is: what is the formulas about damping in details? Where can I find the references about damping in bullet?
What is the formulas about damping in bullet?
-
- Posts: 14
- Joined: Tue Jul 06, 2010 5:20 pm
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
-
- Posts: 14
- Joined: Tue Jul 06, 2010 5:20 pm
Re: What is the formulas about damping in bullet?
Many thanks. However, where can I find the physical formula of damping in Bullet?
Erwin Coumans wrote:See the discussion here:
http://code.google.com/p/bullet/issues/detail?id=74
Thanks,
Erwin
Last edited by qingteng on Fri Nov 12, 2010 4:27 pm, edited 1 time in total.
-
- Posts: 508
- Joined: Fri May 30, 2008 2:51 am
- Location: Ossining, New York
Re: What is the formulas about damping in bullet?
It is just a factor lost per second. It's not based on any physical theory as far as I know, it's just a model that has the right kind of curve. Since realistic damping is out of the question, the best alternative is a model that is easy to understand.qingteng wrote: My question is: what is the formulas about damping in details? Where can I find the references about damping in bullet?