How to fix clunky movement in 2d rigidbody using a superclass and subclass script.
First post and new to Unity. I was using a simple rigidbody2d movement script earlier but I felt that it would become more and more messy as I added more onto the script, so I decided to refurbish it into two scripts, a script that inherits a superclass Character for my player script. Once I finished the two replacement script I applied it and the new script feels much more clunky to move with. My old movement script with rigidbody used similar concept but was infinitely much smoother. I also tried to to put the movement if (Input.GetKey(KeyCode.LeftShift)) { MoveSprint(); } else { base.FixedUpdate(); //Executes the Fixedupdate it inherits from }
in the update script and fixed around that, and it still felt as clunky.
Your answer
Follow this Question
Related Questions
Physics.IgnoreCollision between rigidebody2d+polygone collider 2d and edge collider 2d doesn't work? 1 Answer
2d rigibody error? 1 Answer
How to prevent a 2D Kinematic asset passing through a 2D Box Collider. 1 Answer
All colliders not longer working 0 Answers
2D Sprite is floating when I move him (Rigidbody2D) 0 Answers