hi community,
this
...
var maxForwardSpeed:float = 0.08;
...
if(velocityTranslate >= maxForwardSpeed) {
velocityTranslate = maxForwardSpeed;
} else {
velocityTranslate += Time.deltaTime/100;
}
works fine in the normal play-modus (in unity).
the object will never be faster than maxForwardSpeed.
but in the windows standalone player the object driving faster and faster…
any ideas?
i know the problem now:
deltaTime!
in windows-standalone-Player deltatime is ~0,005.
in the unity-testplayer deltatime is ~0,02.
how can i fix that?
any ideas?
What is velocityTranslate controlling? Can you post the part of the code where you use this value?
deltaTime is the difference between frames; that’s correct and doesn’t need to be fixed (the editor runs at a lower framerate than a standalone will). Maybe you mean *100 instead of /100?
–Eric