mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
'Player' class, separated main file
Moved render code to world_render.h, declarations code (assets and blocks) to declarations.h
This commit is contained in:
parent
2a158bfb46
commit
b7e8ff5bea
11 changed files with 370 additions and 265 deletions
10
src/objects/Player.cpp
Normal file
10
src/objects/Player.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include "Player.h"
|
||||
#include "../physics/Hitbox.h"
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
Player::Player(glm::vec3 position, float speed, Camera* camera) :
|
||||
speed(speed),
|
||||
camera(camera){
|
||||
hitbox = new Hitbox(position, vec3(0.2f,0.9f,0.2f));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue