-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorldConstants.h
More file actions
55 lines (40 loc) · 1.12 KB
/
WorldConstants.h
File metadata and controls
55 lines (40 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#define TOP 1
#define RIGHT 2
#define BOTTOM 3
#define LEFT 4
#define null 12345
#include <cmath>
#include "math.h"
bool walls = false;
bool GravityOn = true;
bool FrictionOn = true;
const int DELAY_AMOUNT = 0;
const double PI = 3.14159265;
const double DEGREES = PI/180;
double GRAVITY = 0.00; //0.01; 9.8 l+r g forces
double AIR = 1.000; //0.999; //0.08; //1;Typical speeds of molecules in a gas are √(3RT/M).
const double FRICTION = 0.9; //0.2; F=-b*v F=-6pie*a*n*v radius viscocity velocity
const double COEFFICIENT = 1; //0.01; // 0.5;
const int SCREEN_WIDTH = 1280; //1024;
const int SCREEN_HEIGHT = 800; //768;
const int SCREEN_BPP =32;
Uint32 TIME;
//Particle constants
//Speed of a spawning particle
const int particleSpeed = 1; //(v) = (2eV/m)^1/2
const int PARTICLE_COUNT = 200000; //100000; //1000000;
int SPAWN_RATE = 1;
double ATTRACTION_POWER = 1; //F=(((k*Q1*q[i])/r
double RESIST_POWER = 1; //-0.90;
double cosd (double x)
{
return cos (x * DEGREES);
}
double sind (double x)
{
return sin (x * DEGREES);
}
double arctand (double x)
{
return atan (x)* 180/PI;
}