Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove air resistance?

I have a space simulation, so obviously I don't want gravity or air resistance. Gravity was straight forward to turn off, but I can't find the equivalent for air resistance. I presume it's going to be on a body-by-body basis rather than a world wide setting like gravity.

Indeed I see on btSoftBody that there are values for medium density like air_density but I am using btRigidBody.

like image 950
weston Avatar asked Oct 14 '12 10:10

weston


People also ask

How do you reduce air resistance?

The effects of air resistance can be reduced by streamlining the object, which will allow the moving object to go faster for the same thrust force.

What happens when you remove air resistance?

If there is no air resistance, after you let go of an object the only force on it is the gravitational force. The gravitational force is proportional to the mass of the object. More massive objects have a greater gravitational force.

What is air resistance and how can it be reduced?

Air resistance occurs between the surface of a falling object and the air that surrounds it and it also works to slow the rate at which the object falls. Air resistance works with surface area, so the more surface area, the more air resistance. Think about when you drop two pieces of paper: one crumpled and one flat.

Can air resistance be ignored?

If air resistance is ignored , then there is no acceleration in horizontal direction in projectile motion. Hence the particle move with constant velocity in horizontal direction.


1 Answers

There is no air resistance in bullet physics but there is damping

For every body you create you should set damping calling

body->setDamping(linear, angular);

set linear to be 0

like image 106
Max Avatar answered Nov 15 '22 19:11

Max