Support Forum

Warping/teleportation with A*PP?

I have a dungeon I want to feel contiguous to users but moving between rooms is really a teleportation between geometrically disconnected rooms behind the scenes.

Any resources for using A* to find paths where teleportation is involved?

Hi

You can use an off-mesh link (NodeLink2 component). If you use the RichAI movement script you could then register to the onTraverseOffMeshLink callback to control what happens when the agent reaches the off-mesh link (in this case you just want to move the agent to the other point of the link).
For the AIPath/AILerp movement scripts it would be a bit trickier because they don’t make a difference between off-mesh-links and the normal path.