- Home /
Transform.Translate causing object to teleport
The translation: this.gameObject.transform.Translate(0,-1,0);
The problem is that it is teleporting for some reason. I don't mean stutter-stepping, but it all runs smoothly until it gets to one spot. And it is that area all the time. The only thing there is a colliderless and tagless sprite, so I don't understand why it is having anything to do with it. It will teleport several Unity units downward for no apparent reason. Please help ASAP!
Everytime you call this function, the object will teleport 1 meter downward it's position. At what point does it starts to teleport suddently? [EDIT] I mean, in world coordinates.
After about three meters. I have a delay so I can tell. It will do it once, then again, then again, and then it goes about seven.
Can you post a bigger chunk of the code to analyse? I can't tell just by the function.
Your answer
Follow this Question
Related Questions
transform.Translate causing object to teleport. 3 Answers
Moving multiple transforms from an array in a single script 0 Answers
Tranform.translate does not have constant speed 1 Answer
Stop moving at the target position by using Vector3.forward 0 Answers
instantiate,destroy,gain speed in time 2 Answers