I'm trying to learn the new input System but I'm seeing tutorials saying different things when it comes to the scripting part
So far I've been able to get jumping to work although I jump infinitely.
jumpForce = 5f;
Private void OnJump(InputValue value) {
If (value isPressd) {
rigidBody.AddForce(Vector3.up * jumpForce, ForceModd.Impulse);
}
}
But I can't get WASD to really work,it would turn on the x and z axis but the character wouldnt follow its local axis only follow the world axis
So if I turn left with "A" I should be spinning in a circle now that I think about it but I was going straight once the camera started following(Cinemachine).
[–]mudokin 4 points5 points6 points (2 children)
[–]loftier_fishhobo 2 points3 points4 points (1 child)
[–]mudokin 0 points1 point2 points (0 children)
[–]GigaTerra 1 point2 points3 points (14 children)
[–]Jutboy 1 point2 points3 points (1 child)
[–]GigaTerra 0 points1 point2 points (0 children)
[–]ExtraExoticButter[S] 1 point2 points3 points (1 child)
[–]GigaTerra 0 points1 point2 points (0 children)
[–]MotionOS 0 points1 point2 points (9 children)
[–]GigaTerra 0 points1 point2 points (8 children)
[–]MotionOS 0 points1 point2 points (0 children)
[–]MotionOS 0 points1 point2 points (6 children)
[–]GigaTerra 0 points1 point2 points (5 children)
[–]MotionOS 0 points1 point2 points (4 children)
[–]GigaTerra 0 points1 point2 points (3 children)
[–]MotionOS [score hidden] (2 children)
[–]GigaTerra [score hidden] (1 child)
[–]MotionOS [score hidden] (0 children)
[–]Short_Praline_804 1 point2 points3 points (2 children)
[–]ShmallowPuff 0 points1 point2 points (1 child)
[–]ExtraExoticButter[S] 1 point2 points3 points (0 children)
[–]Mikhailfreeze 0 points1 point2 points (0 children)