I have a flying entity, and I want it to go up a flight of stairs. Pathfinding service will create waypoints for each stair, which is only efficient for a walking character.
Since my entity is flying, I need it to find the absolute most efficient path to get somewhere without going through walls. Pathfinding seems to work best only for walking on the ground.
Is there any way I can modify pathfinding service or use an alternative to achieve this?
A demonstration of what I need is in the image below.
All blue points represent waypoints created by pathfinding service.
The left drawing is what pathfinding does (what I DON’T want) and the right drawing is what I want to achieve.
Hello, roblox pathfinding does not support flying entities, but you could attempt to change the Agent height. If that doesn’t work you could add an Invisible ramp that straightens out the stairs.
Absolutley, but if this is the case then the second solution should be perfect.
Otherwise you could write it so the flying object will fluctuate agent height if the pathfinding is valid, or use raycasts to determine a proper agent height.
Are you 100% sure this is the only way? There should be options or something in pathfinding that allows you to use teleportation or flying to get to each waypoint rather than assuming its only a walking character.