From 6e240c406bc9774161dd3b5cea1bbef38769dd73 Mon Sep 17 00:00:00 2001 From: JadePie <112761038+JadePie@users.noreply.github.com> Date: Wed, 2 Aug 2023 18:47:02 +0200 Subject: [PATCH 1/2] define changes --- samples/character/src/CharacterGame.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/samples/character/src/CharacterGame.cpp b/samples/character/src/CharacterGame.cpp index 999c2a70bb..ca92c4a3bc 100644 --- a/samples/character/src/CharacterGame.cpp +++ b/samples/character/src/CharacterGame.cpp @@ -4,17 +4,17 @@ CharacterGame game; // Input flags -#define NORTH 1 -#define SOUTH 2 -#define EAST 4 +#define NORTH 2 +#define SOUTH 4 +#define EAST 6 #define WEST 8 -#define RUNNING 16 +#define RUNNING 12 // Character defines -#define WALK_SPEED 5.0f -#define STRAFE_SPEED 1.5f -#define RUN_SPEED 15.0f -#define CAMERA_FOCUS_DISTANCE 16.0f +#define WALK_SPEED 6.0f +#define STRAFE_SPEED 2.0f +#define RUN_SPEED 20.0f +#define CAMERA_FOCUS_DISTANCE 19.0f #define BUTTON_1 0 #define BUTTON_2 1 From a194d24525d1e674b187b836650e72d06b9a2bdd Mon Sep 17 00:00:00 2001 From: JadePie <112761038+JadePie@users.noreply.github.com> Date: Wed, 2 Aug 2023 18:56:21 +0200 Subject: [PATCH 2/2] changed mass to realistic values --- samples/character/res/common/sample.physics | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/character/res/common/sample.physics b/samples/character/res/common/sample.physics index a9bce4cf0b..ec5e278d8b 100644 --- a/samples/character/res/common/sample.physics +++ b/samples/character/res/common/sample.physics @@ -2,7 +2,7 @@ collisionObject basketball { type = RIGID_BODY shape = SPHERE - mass = 1.0 + mass = 0.6 friction = 0.5 restitution = 1.0 linearDamping = 0.1 @@ -13,7 +13,7 @@ collisionObject chair { type = RIGID_BODY shape = BOX - mass = 5.0 + mass = 42.0 friction = 1.0 restitution = 0.0 linearDamping = 0.9 @@ -24,7 +24,7 @@ collisionObject table { type = RIGID_BODY shape = BOX - mass = 0.0 + mass = 100.0 friction = 0.5 restitution = 0.75 linearDamping = 0.1 @@ -61,7 +61,7 @@ collisionObject boy height = 6.0 center = 0, 3.0, 0 centerAbsolute = true - mass = 20.0 + mass = 40.0 maxStepHeight = 0 maxSlopeAngle = 0 }