Hi, I'm newbie & sorry for asking noob question but I'm having trouble in creating player movement especially running & jumping.
Running:
I use rigidbody instead of char.controller. In the 1st state, I place pic 1 setting & upon press of shift, it will go to state 2 (pic 2) & go back to state 1 when I release the key. I want to change the speed faster whenever I hit shift, but above setting doesn't do as intended. It still move when in 1st state but "dash" forward when I release the shift (in state 2). Where did I do wrong?
Jumping:
In jumping, how I can make the player able to jump higher based on his speed? example, if he's "walking" to "jumping" only able to jump height of 1 meter & move forward 1 meter. But if he's running then he can jump higher & move forward further. My current setting is able to move player forward but I want to know how to get the desired result.
jumping state 1:
set velocity (Y vector) -> get velocity (Y vector) -> float compare (less than then "fall")
jumping state 2:
get velocity (Y vector) -> float multiply -> set velocity (Y vector)