AI LERP Enable X Axis Orientation

Hello there,

I have set up a variation of the Point Graph Example. But I am using it with AR to project it vertically onto a wall. For this purpose I am using AI LERP instead of the AI Path.

I now need to change the AI LERP script to allow for player rotation along the X Axis. Can somebody help me with the code? I tired but failed ;(

Thx

Hi

The AILerp has two options for orientation. Either the Z axis is forward, and the Y axis points along the natural up axis. Or the Y axis is forward, and the Z axis points along the natural up axis for the graph.

For a point graph, the natural up axis is not defined, so it just uses Vector3.up.
You can find a workaround for this at the bottom of: Pathfinding in 2D - A* Pathfinding Project