The wandering works but for one thing. The origin of the random spot node is not getting the new location of the actor. This is for a behavior tree task.
I am getting a reference to the controller and getting the location. How ever the location does not change as the actor moves. As you can see I am printing the origin and the random spot.
The results are, the origin is in the same spot for every call. I indicated the three different actors in play. What I would like to happen (what I expected) is for the actor to get a random location from the new location. As it is the actor only wanders within the radius given.
It this happening because the controller does not get the new position as the actor in play moves? How can I fix this?