Hello,
I'm having problems with making objects move fluidly through my game world.
I've toned it down to an extremely basic situation:
Setup:
5 x planes placed one after another to make a long "field"; All static
1 x cube (basic 3d shape cube)
1 x camera - child of cube
No lights, No shadows cast, no shadows received.
The following extremely simple script is attached to the cube:
void Update()
{
transform.position = Vector3.Lerp(transform.position, transform.position + transform.forward, Time.deltaTime * 5f);
}
This causes the cube to move "choppily" through the scene.
Can anyone suggest a way to make this cube move fluidly through the scene?
NOTE: the choppiness is palpable in the editor, and on my target platform (android, galaxy s4 device, 4.4.4) // using unity 5 free
Thank you.
***UPDATE:***
It seems that the problem is limited to Android platform builds. I tried switching to WebGL, which resulted in full fluidity in both the editor and in Chrome...
I had made a far more complex scene in 4.6 (for a different project), which did not have this choppy movement problem (on Android)... I guess I'll investigate platform specific issues and fixes...
↧