Linear Damping Calculation

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Linear Damping Calculation

Postby oddrose » Tue Sep 09, 2008 1:52 pm

Hi!

I am trying to calculate the landing point of a thrown object with a known angle and starting velocity.
To do this accurately enough I need to know how Linear Damping is calculated in newton.
Basically my question is: is the force applied just calculated from the velocity and the linear damping coefficient
or is the area and mass of the object aswell as the density of the air involved?

Grateful for any reply
oddrose
 
Posts: 2
Joined: Fri Jun 22, 2007 6:07 am

Re: Linear Damping Calculation

Postby Julio Jerez » Tue Sep 09, 2008 3:58 pm

just set it to zero, and do it yourself in the force and torque callback.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Linear Damping Calculation

Postby oddrose » Tue Sep 09, 2008 4:07 pm

okay, a secret's a secret I guess =)

thanks for the tip, I'll do it like that!
oddrose
 
Posts: 2
Joined: Fri Jun 22, 2007 6:07 am

Re: Linear Damping Calculation

Postby JernejL » Tue Sep 09, 2008 6:08 pm

oddrose wrote:okay, a secret's a secret I guess =)


See: wiki page: NewtonBodySetLinearDamping

The way the damping is calculated is pretty clearly described there.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Linear Damping Calculation

Postby Julio Jerez » Tue Sep 09, 2008 9:02 pm

It is not a secrect, teh damping code if f = - k/m * v,
thsi apply damping to a body regaless of teh mass, threfore it is not acurate by any mean.
The purpose of thr default damping in teh engine is to guaratee that smothh body will eventually stop moving,
I alway recomend end users to set it to zero, and apply the apropriete value in the force callback.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 11 guests

cron