diff options
author | Julien Dessaux | 2022-09-23 19:09:28 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-09-23 19:09:28 +0200 |
commit | 63029a3a27eb3ae44d802cb17b0c453e84595ade (patch) | |
tree | 9c5ad6c4fc077448d172bb30df90494665bae73a /src/utils.zig | |
parent | Added brothers jumping (diff) | |
download | grenade-brothers-63029a3a27eb3ae44d802cb17b0c453e84595ade.tar.gz grenade-brothers-63029a3a27eb3ae44d802cb17b0c453e84595ade.tar.bz2 grenade-brothers-63029a3a27eb3ae44d802cb17b0c453e84595ade.zip |
Added ball physics
Diffstat (limited to 'src/utils.zig')
-rw-r--r-- | src/utils.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils.zig b/src/utils.zig index bb9eb13..6f1e850 100644 --- a/src/utils.zig +++ b/src/utils.zig @@ -1,4 +1,5 @@ //----- Physics --------------------------------------------------------------- +pub const bounce: f64 = 0.7; // energy dispersion when bouncing pub const gravity: f64 = 9.807; // m/s² pub const scale: f64 = 1.0 / 30.0; // 30 pixels == 1m pub const frequency: f64 = 1.0 / 60.0; // 60 fps |