DeadRat
November 23, 2023, 9:33am
#1
On every update, I’m assigning a destination to AIPath.destination and running the AIPath.SearchPath() function.
When I grab the destination and move it from x5, y0 to x5, y5, it doesn’t just move the y-value, it moves the x-value as well.
Am I doing something wrong with my settings?
I’m not quite sure what you mean. Could you clarify?
DeadRat
December 1, 2023, 5:58am
#3
This is a 2D setting.
A-object position X: 5, Y: 0
B-object position X: 5, Y: 5
assign B-object to AIPath.destination in A-object on update and run AIPath.SearchPath() function
set aiPath.SetPath(null) and aiPath.isStopped = true; before the A-object reaches the collision range of the B-object.
Predicted Movement of Object A During Progress X: 5 → 5, Y: 0 → 5
Resultant movement of A object X: 5 → 4.9~5.1, Y: 0 → 5
This is the resulting movement when the RVOController is enabled.
Hi
If the agent was rotated, then it might move away from the line a bit until it has corrected its rotation.
The AILerp movement script will move exactly along the calculated path.
DeadRat
December 15, 2023, 7:32am
#5
The rotation option is not turned on.