I’m trying to move my character with a joystick direction , relative to the camera (Cinemachine).
I don’t know why but when I put my joystick Up, If I’m not already moving , the player is like stuck…
And when I turn left , right, down, the player move normally. After moving in other direction ( without release the joystick), the player can go forward. Then after release , If I try to go forward again, the player is stuck again…
Hey, I’m also making a game using a joystick, but I think the way I did for movement is different to yours, I used a joystick asset for now, did you make your own, or used an asset as well?
I used this one (https://assetstore.unity.com/packages/tools/input-management/joystick-pack-107631) I find this one really easy to use for movement, by using attributed like Joystick.direction or Joystick.vertical, Joystick.Horizontal , Using these makes it easy to implement things like player movement etc.
I’m not telling you to change or anything, just to check it out. And sorry I couldn’t help with your question
For the joystick i’m using the included one : “OnScreenStick”
But i’m 100% sure that it don’t came frome the joystick. the debug value return good values…
the problem came from “cameratransform.forward * movementJoyL.y + cameratransform.right * movementJoyL.x”
When i’m using a simple movement function without to be relative to camera everything work perfectly