#Diagonal movement bug. Undesired Zig-Zag effect.

1 messages · Page 1 of 1 (latest)

gilded thicket
#

What happens if you do it in one step?

#

velocity = velocity.move_toward(id * speed, acceleration)

tawdry sand
cedar minnow
#

When you say you used the implementation from the documentation what do you mean? (What was the exact code you used?)

#

If you move speed outside of the move toward function? It’d be helpful to see more of the code because the issue might not occur here

#

Very dumb question, but what happens if you hold down all the keys will editing text in notepad? Maybe your keyboard is unable to take multiple inputs at the same time or those specific keys?

tawdry sand
cedar minnow
#

Maybe it’s your input mapping? Do you have 2 keys assigned to (for example) up?

tawdry sand
tawdry sand
cedar minnow
#

If the same code works differently in 2 different projects, then it’s probably not the code.

tawdry sand
#

Yeah. But project settings are the same on both of them.

#

The only difference I can tell is that the other project has a viewport larger than the current one and the camera is zooming in to compensate for the larger view.