- Home /
Would this code not work because there is no Time.DeltaTime?
This is the code I am working with. Is Time.DeltaTime necessary, or is it not needed at all to make this code work?
#pragma strict
var moveSpeed: float = 15.0;
var objectPosition: float = 100.00;
function Start () {
}
function Update () {
transform.localPosition += objectPosition * moveSpeed;
}
Comment
Best Answer
Answer by Eric5h5 · Jun 06, 2014 at 05:44 PM
It's necessary. That code is broken since it will run at different speeds depending on various conditions (computer speed, CPU load, vsync settings, etc. etc.).
Your answer
