Deplacement of a character with GPS

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.


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 ?

I solved it by using rigidbody instead of transform in the script.

Hello soybenito…i am a begginner in creating application in unity. I am currently creating a game and want to use the gps in my android device ,the same as yours, but dont know where to start. I was just wondering if you can give me a copy of your character control to be my reference.