Air friction

Hi!

I think about air friction but i havent idea how do this. I have a way but it is... .
In all dynamic bodies hit invisible force. This force/vector is the same as has the body, but with the opposite sense.

Is it good?
Urhm...
Just use linearDamping
Neosano wrote:
Urhm...
Just use linearDamping


That is the easiest solution.

Set the linearDamping property of your bodyDef to some value > 0. (Note: the value can be larger than 1).

But I don't think it's physically correct. Linear damping influences the velocity of the body at every timestep, I think multiplying it by a constant factor. Real 'drag' depends on the square of the velocity though.
Are you referring to air resistance?
Yes. I need do this. Resistance of air. Do you know how?
EDIT:
Set linearDamping in bodyDef is a great way. Thank you.


What variables define the degree of reflectivity of body from body?
EDIT:
I found it.
http://www.box2d.org/forum/viewtopic.php?f=3&t=2075
Its my understanding that Box2d doesn't do air resistance.

You can do the linear damping but that doesn't take into effect the aerodynamics involved.
HI
i am making a Blower Kind of effect (like Fans)
but right now i am doing an invisible body that exerts ApplyFoce when any body collide with it...is there any better way to make Blower
Thanks
satarupa wrote:
HI
i am making a Blower Kind of effect (like Fans)
but right now i am doing an invisible body that exerts ApplyFoce when any body collide with it...is there any better way to make Blower
Thanks

Yeah, don't create any bodies, just use ApplyForce
i didnt get how to Apply force without creating body can you explain me
satarupa wrote:
i didnt get how to Apply force without creating body can you explain me

What's the problem? Just apply a force every frame?

Original thread: https://box2d.org/forum/viewtopic.php?t=2718