I am having troubles creating smooth movement using “transform.Translate” in conjunction with “Time.deltaTime”. Instead of smoothly moving over to course of a second it just jumps “10” in that direction with every update. Here is my code if that helps:
rayExit.transform.Translate(new Vector2(Mathf.Cos(rangle1toRad), Mathf.Sin(rangle1toRad)) * 10 * Time.deltaTime);
All I NEED is smooth movement that I can point in a defined angle, similar to the setup I have with this vector2, and ideally with said vector2. If anyone knows how I can get this to smooth out instead of jump please give my any tips you might have. If you think other lines in my code are at fault I can share those too.