You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
17 September 2015
Released version 1.2.0-Beta
Change log:
-Fixed: The Collision equations a bit more
-Added: Cannonball now
holds its own box
-Changed: Attempted to make the code more efficient
-Added: Keyboard Press events, (Q/ESC to quit, K to kill all balls,
and R to stop all motion)
-Updated: Readme
-Changed: Default Min
Velocity from 0.5 to 0.0 (basically disabling it)
-Changed: Disabled
the Unrealistic method I added in 1.1.9-beta as it did not help.
-Fixed: Drag update acc would sometimes divide by 0
-Changed: Default
Collision Method from Elastic to Ineleastic
-Changed: fMomentumLoss
name to fCoefficientRestitution to be named after its real life counter
part
-Added: Friction between the ball and floor / wall
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,3 +28,35 @@ FolderName\SDL2_image.dll
28
28
```
29
29
30
30
Let me know if I am missing a dependences that I might have forgotten about due to my own system set up.
31
+
32
+
# Using the Program
33
+
34
+
The first time you run the program a Config.ini will be created it should look something like below:
35
+
36
+
```
37
+
Config File for the Cannon.exe
38
+
1.2.0.25-b
39
+
Screen Width: 640
40
+
Screen Height: 480
41
+
Log Ball's path: 0
42
+
Enable Drag Mode (experimental): 0
43
+
```
44
+
45
+
You can use this to change things like the screen height and width, and other stuff.
46
+
47
+
"Log Ball's Path" (if enabled with a 1 instead of 0), will cause a a file called "logfile.log", which will contain the placement of every ball on every update (it gets quite big as you can guess).
48
+
49
+
"Enable drag Mode" (if enabled with a 1 instead of 0), will cause the cannonballs to be effected by drag. It is listed as experimental because I based the equations used off of several things I found
50
+
online and I cannot verify how accuate it is.
51
+
52
+
Once you start the program you will be greeted with a beautiful white screen. To create a new cannonball you click (and hold down the button)
53
+
you can now move your move around to change the angle that the new cannonball will be fired at; as well as the longer the line the faster it will go.
54
+
When you are happy with the angle and speed simply release the mouse button and it will be created at the point where you clicked the mouse button down.
55
+
56
+
You can also press the following keys to yield effects
0 commit comments