Player scale correction

master
Vectozavr 2021-10-24 09:49:48 +07:00
parent 3010657e3d
commit 2b01e305f8
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -76,6 +76,7 @@ void Shooter::start() {
world->loadMap(ShooterConsts::MAP_OBJ, Vec3D{5, 5, 5});
player = std::make_shared<Player>();
player->scale(Vec3D(3, 1, 3));
playerController = std::make_shared<PlayerController>(player, keyboard, mouse);
// TODO: encapsulate call backs inside Player