2D-Character-Controller
2D-Character-Controller copied to clipboard
Free 2D Character Controller for Unity.
Previously, I had a problem with the character performing infinite jumps once he is off the ground. Another poster some time back added: Cancel Former Momentum on Jump to the...
2D Character Controller unintentionally crouches when a character hits the ceiling. It's caused by checking for a ceiling while the character is standing (`!crouch`), causing it to crouch everytime the...
This is very bad: garbage collection and ram usage will spike OverlapCircleAllNonAlloc is more appropriate here
My code: `using UnityEngine; public class PlayerMovement : MonoBehaviour { CharacterController2D controller2D; float horizontalMove = 0f; float runSpeed = 70f; bool jump = false; bool crouch = false; // Update...
not work
it doesn't work, may it be because unity is no longer the same as it was 4 years ago? (i use google traslate, sorry for english)