mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
optimize collisions calculations (remove the stupid)
This commit is contained in:
parent
49aa7cdfba
commit
b0d231c927
9 changed files with 134 additions and 103 deletions
|
|
@ -214,6 +214,6 @@ void GlobalChunks::putChunk(std::shared_ptr<Chunk> chunk) {
|
|||
chunksMap[keyfrom(chunk->x, chunk->z)] = std::move(chunk);
|
||||
}
|
||||
|
||||
const AABB* GlobalChunks::isObstacleAt(float x, float y, float z) const {
|
||||
return blocks_agent::is_obstacle_at(*this, x, y, z);
|
||||
const AABB* GlobalChunks::isObstacleAt(float x, float y, float z, const AABB& aabb) const {
|
||||
return blocks_agent::is_obstacle_at(*this, x, y, z, aabb);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue