Merge branch 'develop' into height_map_generator

This commit is contained in:
Tom AUGIER
2021-06-05 17:36:04 +02:00
committed by GitHub
38 changed files with 647 additions and 307 deletions

View File

@@ -151,7 +151,7 @@ namespace BBM
scene->addEntity("Hole Block")
.addComponent<PositionComponent>(Vector3f(coords.x, coords.y - 1, coords.z))
.addComponent<Drawable3DComponent, RAY3D::Model>(holeObj, std::make_pair(MAP_DIFFUSE, holePng));
/* .addComponent<CollisionComponent>([](WAL::Entity &other, const WAL::Entity &entity) {
/*.addComponent<CollisionComponent>([](WAL::Entity &other, const WAL::Entity &entity) {
if (other.hasComponent<HealthComponent>()) {
auto &health = other.getComponent<HealthComponent>();
health.takeDmg(health.getHealthPoint());