r/UnityHelp • u/MoonwatchLunarpick • Apr 16 '26
Baffling Movement Issue
Enable HLS to view with audio, or disable this notification
Hi all. I am currently working on a game and I have noticed a really ugly sudden pause when I land from a jump. My character is a rigidbody one and controlled through forces. I was confused because it just began doing this. Even more confusing, it appears that the only way to fix it is by changing a value on the player in ANY of the scripts, and then using cntrl-z will somehow fix the issue while in play mode. I am genuinely baffled by this and any help would be appreciated.
1
u/MoonwatchLunarpick Apr 16 '26
Also to add further context my rigibody is Interpolated and has Continous Dynamic collision.
1
u/SuburbanGoose Apr 16 '26
Is it possible that it's a floating point issue.
I wasn't able to get your code to load but if you have any areas where you check if forces applied to rigid body/velocity = 0 exactly sometimes it can be finicky. If this is the case, try throwing a small value threshold to replace your 0 checks.
1
u/CNGY Apr 17 '26
For your script, looks like ground detection is .2f, 20cm. When this happens your groundDrag comes into play and applies 6f drag to all axis. The 6f is acting like a parachute for the transition from .2f to ground level.
Edit : spelling
1
u/[deleted] Apr 16 '26
[removed] — view removed comment