- Home /
Movement speed changed after upgrading to Unity 2019.3.0a5
I'm currently working on pathfinding. After swiching from 2019.1.5f1 to 2019.3.0a5, I've noticed significant movement speed drop of my testing unit.
Here is how it looked before:
And here is how it looks now
Code used for moving (I will drop pathfinding details)
private void Update()
{
var desiredPosition = Vector3.MoveTowards(transform.position, _targetPosition, MovementSpeed * Time.deltaTime);
_rigidbody2D.MovePosition(desiredPosition);
}
MovementSpeed is equal to 10 in both cases.
Can anyone explain me what's going on?
Update: After moving movement logic to FixedUpdate and changing deltaTime to fixedDeltaTime, it seems to work properly. I still don't get what change happened in new Unity version.
Answer by ethentianknight · May 16, 2020 at 11:40 AM
Same behavior on my 3d project, player moving significantly slower than they were in the previous editor (2019.2.15f1 - 2019.3.13f1). Any answer on this one appreciated, worried that if I adjust physics it'll snap back at a later version and I'll be sunk.
Answer by Feldethain · May 17, 2020 at 01:22 PM
I'm in the same boat but OP's fix didn't resolve it. By cranking the value for move speed way up to match the previous speed, the rigidbody starts having some serious jitter issues, so I hope there's a work-around, or that Unity fixes this soon.
Your answer
Follow this Question
Related Questions
Odd character dash discrepancies. Time.deltaTime? 2 Answers
deltaTime doesn't work with custom gravity (ECS) 0 Answers
Problem with Fixed Timestep 0 Answers
Switching a 3D project to 2D 2 Answers
Bouncing square stops moving diagonally 0 Answers