- Home /
Object doesn't move
I'm trying to make an object move between two different points. I have this script but it doesn't work and I can't find the mistake. It's not giving any errors it just doesn't work. I hope you can help me, thanks in advance :D
Answer by AG45_ · Aug 26, 2020 at 12:51 PM
first its not an error its that ur code is soooo messy i cant even understand what ur trying to do so add some comments and give me a screen shot
or show me a screen shot of unity and tell me what ur trying to do
Answer by RufusHolton · Aug 26, 2020 at 12:55 PM
i think maybe u should clean the code a bit so its easier to read then use the move towards function in Vector3 to move the object
https://docs.unity3d.com/ScriptReference/Vector3.MoveTowards.html
also maybe try searching for an answer more instead of just asking a question