Anyone know how, using python i can get the nearest object to you and then move to its location.
The moving to an objects location should be easy with.
pos = nearest.worldPosition player.worldPosition = [pos,pos , pos]
And i have attached a blend which locates the nearest.
But instead of tracking the nearest i want to move the player to the location of nearest.
I have not figured out how to get the nearest object to work in code above.
In this file i want to be able to load the .worldPosition and possibly the .worldOriantation of the “closest” object.
track to closest rev1 .blend (152 KB)