Hi, I’m trying to make my Camera move from point A to B in 3 seconds when i press a button. It would be nice if it was smooth aswell (accelirating in the begining and slowing down at the end)
If anyone could help me with this that would be verry gald. I am using C# but if it’s written in Java I can probebly translate it
Thanks in advansed and sorry for my terrible English.
PS. I’m trying to move it to another Gameobject named HomePos.
See MoveObject, specifically the Translation function using MoveType.Time. To get the acceleration/deceleration effect, change “Vector3.Lerp(startPos, endPos, t);” to “Vector3.Lerp(startPos, endPos, Mathf.SmoothStep(0, 1, t));”