Starting to do physics

This commit is contained in:
2018-10-03 20:48:00 +02:00
parent 4da27c5777
commit 3e8ae2d496
9 changed files with 319 additions and 78 deletions
+10
View File
@@ -0,0 +1,10 @@
use sfml::system::Vector2;
/// The gravity force.
pub const G: Vector2<f32> = Vector2 { x: 0.0, y: 50.0 * 32.0 };
/// The friction with the ground.
pub const GROUND_FRICTION: Vector2<f32> = Vector2 { x: 0.5, y: 1.0 };
/// The speed of a jump.
pub const JUMP_SPEED: Vector2<f32> = Vector2 { x: 0.0, y: -600.0 };