mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add pathfinding.set_jump_height
This commit is contained in:
parent
ac1623f86c
commit
174a3c6871
4 changed files with 18 additions and 6 deletions
|
|
@ -156,7 +156,7 @@ Route Pathfinding::perform(Agent& agent, int maxVisited) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (is_obstacle_at(chunks, pos.x, pos.y + agent.height / 2, pos.z)) {
|
||||
if (is_obstacle_at(chunks, pos.x, pos.y + agent.jumpHeight, pos.z)) {
|
||||
continue;
|
||||
}
|
||||
if (!check_passability(agent, chunks, node, offset, i >= 4)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue