Is it possible to simplify the drag equation for 3D programming purposes?

  • Thread starter Thread starter Gibbon
  • Start date Start date
  • Tags Tags
    Drag
Click For Summary
Calculating drag in 3D programming involves understanding air density, object area, and drag coefficients, which can complicate implementation. However, engines like Unity3D simplify this by allowing users to set drag and angular drag properties without detailed inputs. This is achieved by using predefined drag coefficients that can be adjusted through trial and error rather than precise calculations. Many programmers prioritize creating an enjoyable gaming experience over achieving realistic physics simulations. Simplifying the drag equation can enhance efficiency in game development while still providing satisfactory results.
Gibbon
Messages
22
Reaction score
0
Simplified drag equation??

Hi, I am a 3D programmer and I am trying to apply drag to some of my objects in my software.

After looking around and from previous research i know that calculating drag isn't such a simple thing to do and involves knowing air density, object area and the drag coefficient.

But, whilst research on the net i realized a well used 3D engine "unity3D" allows you to add a ridig body into the scene, give it some mass and then "simply" set its drag and angular drag properties without any inputs of air density, area or any coefficients?

So how could this be done?

Thanks
Andy
 
Physics news on Phys.org


You just do it.
The drag coefficients are just numbers.
You can calculate the correct numbers from all the data you mentioned, or you can guess a figure, try it out, adjust it, and so on ... trial and error.
Most programmers are not as interested in making a realistic point-for-point physical simulation as they are in making a fun experience for the gamer.
 
For simple comparison, I think the same thought process can be followed as a block slides down a hill, - for block down hill, simple starting PE of mgh to final max KE 0.5mv^2 - comparing PE1 to max KE2 would result in finding the work friction did through the process. efficiency is just 100*KE2/PE1. If a mousetrap car travels along a flat surface, a starting PE of 0.5 k th^2 can be measured and maximum velocity of the car can also be measured. If energy efficiency is defined by...

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
6
Views
1K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 34 ·
2
Replies
34
Views
6K
Replies
2
Views
3K
  • · Replies 26 ·
Replies
26
Views
14K
  • · Replies 7 ·
Replies
7
Views
12K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K