## Linear Damping Calculation

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

### Linear Damping Calculation

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?

oddrose

Posts: 2
Joined: Fri Jun 22, 2007 6:07 am

### Re: Linear Damping Calculation

just set it to zero, and do it yourself in the force and torque callback.
Julio Jerez
Moderator

Posts: 11155
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

### Re: Linear Damping Calculation

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

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

JernejL

Posts: 1531
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

### Re: Linear Damping Calculation

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

Posts: 11155
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles