#Cannot seem to find a good solution for Analog/joystick movement.

6 messages · Page 1 of 1 (latest)

signal zealot
#

In the middle of trying to replace some movement related code to have proper analog/joystick support.

However this newer code I've tried doesn't appear to play nice with the camera movement, as the player will slow down if you point the camera downwards (this only seems to occur when following the Z axis specifically), and you'll move faster when moving diagonally.

From what I can gather the fix lies in normalizing the movement vectors (which is what the older code did on the Z axis) but I can't seem to figure out a way of doing this without resulting in extremely broken movement (e.g the player doesn't move according to the camera properly).

Does anyone have any ideas on how to solve this?

#

for reference, this was the older movement code, if theres a way of implementing full analog movement to this code instead then i'd also be happy with that

covert lance
#

Does move_input need to be normalized?

#

And does action strength not affect speed then?

signal zealot
#

I think I might've just solved it by accident despite the fact I have spent the past 3 days trying to sus out a solution and consulting numerous people 💀 but i'll post what I believe is the solution

signal zealot