Unity Problem With Character Control?
The images are components and the script.
I have the following problem: as soon as the character crosses the y coordinate 2, he falls upwards, as if gravity were changing at that point. Furthermore, since I changed the movement, the controls no longer work, meaning he can no longer be moved the way I want.
I didn't change anything in the project settings during the course of the project.
I ask for help, maybe someone can find the error in the code.
Probably the clip error in FixedUpdate. Then I stopped reading. If you already use a software that can show you the pair of brackets, you should also use it. But maybe it’s not a parenthese error, and I just don’t know how Unity sets priority at && and ==. Depending on the compiler, this is different and you should always cling clearly for safety reasons.
movemnt works again however the chracter from height 2 still works
I don’t know if it will help but I would delete the 2nd capsule collider
Hey I am not a profi in unity myself but I can suspect that input = getaxys should be in fixedupdate.
The code is from brackeys or:D if yes, you can control the code
jab oops. However he flies in the summer och from 2 ind the ventilators
To really help you, I would have to see the code (not as a picture) you use for character control. But I can give some general tips:
1. Check if you manipulate gravity somewhere in your code, especially if the Y coordinate exceeds a certain limit.
Two. See if the collision models are set correctly. Sometimes an incorrectly set collision model can cause the character to behave strangely.
3. If you have changed the movement, make sure you have updated all references and variables correctly.
4. Check the Input settings in Unity to make sure they are still valid.
Can you show me the code (here in writing) you use? This would be very helpful in the diagnosis of the problem.
have you been staying?