- Home /
transform.Translate moves the object too slow in ipad
Hello
i have an object which move constantly in Update() function with transform.Translate
however on the editor the object moves with high speed, but when i build the game on ios and test it on my ipad, the object moves tooo slow.
also how can i test the game on ios from the editor without building the game on my ipad?
public float ms;
void Start()
{
ms = -700f;
}
void Update ()
{
transform.Translate (0, ms*Time.deltaTime, 0);
}
You can use Unity Remote to test it on your phone. $$anonymous$$ore information http://docs.unity3d.com/$$anonymous$$anual/UnityRemote4.html
Answer by AngryBurritoCoder · Feb 06, 2015 at 07:42 PM
Not sure but try using transform.Translate( whateverYouGot * Time.DeltaTime); , this will make it frame independent. ( you will have to re adjust your speed you already set in the translate ).
But not sure if your problem is because of framerate or not, so might not work.
still not working :( moves normal on editor but slow on ipad
tried building it to pc to check if its slower or not ?
i just built it on pc and the speed was like the speed from the editor
hmm it seems thats time.delta time should have helped, you sure it was correctly built with time.deltatime ?just making sure.
public float ms;
void Start()
{
ms = -700f;
}
void Update ()
{
transform.Translate (0, ms*Time.deltaTime, 0);
}
this is my code