- May 25, 2024
- 20
- 5
I'm currently implementing pathfinding for my game and I went through a 5h long rabbit-hole about making verticality work. Spoiler: It sucks.
1. Implementing pathfinding via A* is fun when you have 2d. It's not so fun when you have 3d, but possible.
2. If you have height in your game and do not allow to rotate the camera, you create situations in which a ledge can barely be made out from the ground. Especially if it's a bit darker.
3. The computational complexity of it is not to underestimate. Suddenly you have to worry about how exactly your character is supposed so scale walls, jump height, and the size of your character when going under something.
By the end of this I felt like I was making minecraft, because my character box size was 2m and I was working with these 1m blocks.
After getting it 70% working, I took a look at xcom, wasteland 3 and gears tactics. Turns out, when in combat, these games don't even care about height most of the time. The map usually just has some cover.
Thinking back to playing xcom specifically, I can remember some maps incorporating height, but now that I think about it, it doesn't really add anything, does it?
I mean yes, you can take a position that is slightly higher up for more range and a bit of damage, but adding verticality to a game, just for that, seems a bit oof.
Personally, I think I will drop it. Especially for a h game, I don't see myself battling with verticality, the trade off is not worth it.
Do you guys also think that height is not that important or am I just coping?
1. Implementing pathfinding via A* is fun when you have 2d. It's not so fun when you have 3d, but possible.
2. If you have height in your game and do not allow to rotate the camera, you create situations in which a ledge can barely be made out from the ground. Especially if it's a bit darker.
3. The computational complexity of it is not to underestimate. Suddenly you have to worry about how exactly your character is supposed so scale walls, jump height, and the size of your character when going under something.
By the end of this I felt like I was making minecraft, because my character box size was 2m and I was working with these 1m blocks.
After getting it 70% working, I took a look at xcom, wasteland 3 and gears tactics. Turns out, when in combat, these games don't even care about height most of the time. The map usually just has some cover.
Thinking back to playing xcom specifically, I can remember some maps incorporating height, but now that I think about it, it doesn't really add anything, does it?
I mean yes, you can take a position that is slightly higher up for more range and a bit of damage, but adding verticality to a game, just for that, seems a bit oof.
Personally, I think I will drop it. Especially for a h game, I don't see myself battling with verticality, the trade off is not worth it.
Do you guys also think that height is not that important or am I just coping?