Player scale correction
parent
3010657e3d
commit
2b01e305f8
|
@ -8,7 +8,7 @@
|
||||||
#include "engine/utils/Log.h"
|
#include "engine/utils/Log.h"
|
||||||
|
|
||||||
Player::Player() {
|
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});
|
setAcceleration(Vec3D{0, -ShooterConsts::GRAVITY, 0});
|
||||||
setCollision(true);
|
setCollision(true);
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
|
|
|
@ -76,6 +76,7 @@ void Shooter::start() {
|
||||||
world->loadMap(ShooterConsts::MAP_OBJ, Vec3D{5, 5, 5});
|
world->loadMap(ShooterConsts::MAP_OBJ, Vec3D{5, 5, 5});
|
||||||
|
|
||||||
player = std::make_shared<Player>();
|
player = std::make_shared<Player>();
|
||||||
|
player->scale(Vec3D(3, 1, 3));
|
||||||
playerController = std::make_shared<PlayerController>(player, keyboard, mouse);
|
playerController = std::make_shared<PlayerController>(player, keyboard, mouse);
|
||||||
|
|
||||||
// TODO: encapsulate call backs inside Player
|
// TODO: encapsulate call backs inside Player
|
||||||
|
|
Loading…
Reference in New Issue