Hi,
I’m working on a kind of augmented world, where my character move depending on the GPS.
The x, z movements works well, but my character stay on the same y coodrdinate, I would like him to follow the surface of the floor. I don’t know how to do that.
startPoint=transform.position;
endPoint=Vector3(longitude,transform.position.y,lattitude)
transform.position=Vector3.Lerp(startPoint, endPoint, (Time.time-startTime)/duration)
With what should I replace “transform.position.y” to make my character follow the floor ?