Skip to main content
3 events
when toggle format what by license comment
Jan 10, 2022 at 23:22 comment added DMGregory You could put transform.position = Vector2.MoveTowards(transform.position, target, speed * Time.deltaTime); all in one line, but naming that last argument step makes the line a bit shorter, and clarifies intent. (Now I don't have to ask "why is speed being multiplied by delta time?" - the variable name clarifies "oh, that's the distance of one step in the movement")
Jan 10, 2022 at 22:54 answer added Philipp timeline score: 1
Jan 10, 2022 at 21:18 history asked EvelynSays CC BY-SA 4.0