Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | RonHabaron |
im trying to make a “homing rocket” in my 3d game, i want the homing rocket to not hit any objects and fly to the enemy even if he is 1000 pixels above the ground, but I couldnt find a way to do it with navigation node because it only allows the rocket to fly on a singel y axis while i want it to be able to fly anywhere around the world without hitting walls.
any suggestions?
Much depends on how sparse your world is - if it’s not a maze, you could cast a few rays in front of the rocket and change direction if there’s a wall.
If it’s more complicated, a tutorial for full path finding solution in 3d space might just be out of scope for q&a site
aXu_AP | 2022-09-18 15:13
My map is gonna be too complicated for raycasts but thanks anyways for the suggestion.
I searched all over YouTube and Google but couldn’t find single solution that fits, everything was with only one y layer, which is good for enemy running towards you, but for a homing missile it’s not.
RonHabaron | 2022-09-19 11:30