From 2b01e305f8b9fd4643d5ba6a1a8c3064e8004d5c Mon Sep 17 00:00:00 2001 From: Vectozavr <60608292+vectozavr@users.noreply.github.com> Date: Sun, 24 Oct 2021 09:49:48 +0700 Subject: [PATCH] Player scale correction --- Player.cpp | 2 +- Shooter.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Player.cpp b/Player.cpp index d51898f..db36fb7 100644 --- a/Player.cpp +++ b/Player.cpp @@ -8,7 +8,7 @@ #include "engine/utils/Log.h" Player::Player() { - loadObj(ShooterConsts::CUBE_OBJ, Vec3D{1.5, 1.9, 1.5}); + loadObj(ShooterConsts::CUBE_OBJ, Vec3D{0.5, 1.9, 0.5}); setAcceleration(Vec3D{0, -ShooterConsts::GRAVITY, 0}); setCollision(true); setVisible(false); diff --git a/Shooter.cpp b/Shooter.cpp index f4b2e09..33df19f 100644 --- a/Shooter.cpp +++ b/Shooter.cpp @@ -76,6 +76,7 @@ void Shooter::start() { world->loadMap(ShooterConsts::MAP_OBJ, Vec3D{5, 5, 5}); player = std::make_shared(); + player->scale(Vec3D(3, 1, 3)); playerController = std::make_shared(player, keyboard, mouse); // TODO: encapsulate call backs inside Player