diff options
author | Andy Belle-Isle <abelleisle@protonmail.com> | 2022-11-13 14:17:29 -0600 |
---|---|---|
committer | Andy Belle-Isle <abelleisle@protonmail.com> | 2022-11-13 14:17:29 -0600 |
commit | 8254af1179db18e2a71c34ab9b7090cda16f0f07 (patch) | |
tree | 50a2e5fe2cccbac0c5141a4dc4c713e3dc533573 /src/world.cpp | |
parent | 38e2036d031bdeaea76ef4b6c3c2af5247ed93ec (diff) |
Added crouch keyworld
* This allows players to move 2D to test collision
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/world.cpp b/src/world.cpp index 48e54e3..517c88e 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -69,7 +69,7 @@ World::getSize() void World::generateMesh() { for (auto &l : drawLayers) { - + // Preallocate size of vertexes float Z = l->drawLayer; @@ -89,9 +89,9 @@ void World::generateMesh() 0 , 0+h, Z, to.x , to.y , tr}; glBindBuffer(GL_ARRAY_BUFFER, l->layerVBO); - glBufferData(GL_ARRAY_BUFFER, - 36 * sizeof(GLfloat), - mesh, + glBufferData(GL_ARRAY_BUFFER, + 36 * sizeof(GLfloat), + mesh, GL_STATIC_DRAW); meshAdd.push_back(WorldMeshUpdateEvent(l->layerVBO, @@ -192,7 +192,7 @@ glm::vec3 World::collide(glm::vec3 &start, glm::vec3 &end, Physics &phys) if (i == 0.0f) { std::cout << inter.size() << std::endl; if (inter.size()) { - p.standing = true; + // p.standing = true; } } |