Fix RigidBody Jitter in One Click - Unity Quick Tips

  Рет қаралды 83,373

Lost Relic Games

Lost Relic Games

Күн бұрын

Пікірлер: 242
@LostRelicGames
@LostRelicGames 4 жыл бұрын
I just released a new Unity Asset for making Platformers : u3d.as/2eYe
@Tony-gq4en
@Tony-gq4en 4 жыл бұрын
This is life saving! I thought this had to do with my monitor. You just fixed the last 8 months of my life! Thank you John!
@LostRelicGames
@LostRelicGames 4 жыл бұрын
Your comment just made the video worthwhile mate!
@Tony-gq4en
@Tony-gq4en 4 жыл бұрын
@@LostRelicGames This video literally just helped so much! Immediately became a patron! Thank you Thank you Thank you!
@LostRelicGames
@LostRelicGames 4 жыл бұрын
@@Tony-gq4en you are awesome man! I'm keep the tips coming!
@crispy_doggo9117
@crispy_doggo9117 4 жыл бұрын
Same here! Strangely, on my 144hz monitor I had severe blurring behind my character, and on my second 60hz monitor, it was just a jittery lag on the movement. This fixed both of them!
@klaus117gaming
@klaus117gaming 3 жыл бұрын
Sometimes I run into funny problems in unity and it drives me crazy. This was one of them, thanks for the save man. Would be awesome if you can make more videos on common problems like this
@NobSwitch
@NobSwitch 4 жыл бұрын
This could have been a 10 second video. But you take almost 5 minutes to fully explain to us everything. I wish you were my university professor
@carlosjesus4453
@carlosjesus4453 Жыл бұрын
Oh my God, thank you. I've been unable to fix that error for months and have read dozens of posts saying it was a problem with my screen. A million thanks. You don't know how happy you've made me.
@lodesa
@lodesa Жыл бұрын
Uggghhhh... I could have saved myself 3 hours of frustration if I had just watched this sooner... Thank you so much for this!
@lucasburford7881
@lucasburford7881 3 жыл бұрын
Literally saved my life, my character was jittering so bad when I moved them, this totally solved it. Thank you so much, genuinely! Definitely earned a sub :)
@0Baita0
@0Baita0 4 жыл бұрын
I literally, deleted, my ENTIRE rigidbody character controller the other day and reprogrammed one that didn't need a rigidbody! I'M GOING BACK! THANK YOU SO MUCH FOR THIS!
@barankavlak
@barankavlak Жыл бұрын
You are a life saver sir. I was almost lose my mind because of cars shaking. Thanks!
@RickRodGaming
@RickRodGaming 4 жыл бұрын
THIS IS THE ABSOLUTE BEST!!! This fixed all my jittery nightmares. You have no idea how long I been looking for this solution to no avail, till you came along. Awesome video!!
@assassin_squid
@assassin_squid 2 жыл бұрын
I thought this issue had to do with my poor networking skills. You just saved me from so much pain. So glad I saw this before i tried to fix it myself
@melvmay
@melvmay 4 жыл бұрын
I want to start by saying that this is a great video! Regarding interpolation though; Interpolate doesn't change the simulation at all. Indeed, internally the simulation knows nothing about intepolation. Interpolation only applies to the Transform! What does change is that per-frame the Transform isn't going to be the same as the body but instead moves from the previous body position to the current body position so it's always lagging behind the "real" body position. This means that Rigidbody2D.position and Transform.position are not the same with interpolation. This is important if you're using Transform.position/rotation for queries or other calculations. The Transform pose therefore isn't the same as the Rigidbody2D pose when interpolation are on. Body position is the authoritative pose but it's only updated when the simulation runs. If you are seeing something different happening with this option on then some script is performing work based upon the Transform pose and not the body pose. Interpolation is always behind the body position but extrapolation is always ahead of it because per-frame the Transform is set from the current body position to the extrpolated body position in the future based simply on its velocity i.e. predictive whereas interpolation is historic from last to current.
@LostRelicGames
@LostRelicGames 4 жыл бұрын
Great explanation Melvyn! Thanks for taking the time to delve into the underlying mechanics, insightful!
@melvmay
@melvmay 4 жыл бұрын
@@LostRelicGames Never a problem. Ping me if you need anything at all.
@angryninja5030
@angryninja5030 4 жыл бұрын
Lol can you rephrase that in English 😊
@jauharialafi
@jauharialafi 3 жыл бұрын
Wow, this should be a Unity essentials. It's a sin that this is not a widespread knowledge. Thank you so much for this.
@kanaip5028
@kanaip5028 Жыл бұрын
Amazing! This really did the trick for me! It's my first time using Unity for a game dev class and I encountered this issue with my character's walk cycle a couple weeks ago. Since then, I've been re-animating in AfterEffects and testing in Unity with no success. I even tried moving around keyframes in Unity, which also didn't work. This was perfect, thanks so much for the quick tut!
@duanenso_freestyle
@duanenso_freestyle Жыл бұрын
I always wondered why Interpolate watching these tutorials on these FPS controller things. They always say - do so, but never really states why. Super Duper helpful, subscribed instantly!
@RajThakkar99
@RajThakkar99 3 жыл бұрын
Thanks mate! This did work. I have gone through several forums and posts with different solutions but this fixed it for me! You are a life saver!
@Oto_joolix
@Oto_joolix 3 жыл бұрын
OMG THAKKKKKKKKSSSS, i've sat here now for 2 days, asking myself what i did wrong in my life xD and no one had an answer to this accept for you!! Now why player isn't jittery anymore, love you! thank you verry mutch :)
@inxendere
@inxendere 3 жыл бұрын
This is by far the best channel i've seen for unity 2d dev. Sub earned
@LightReachGames
@LightReachGames Жыл бұрын
Thanks for this brother! Really needed it as my player avatar was having an awful jittery problem. It is now fixed thanks to your tip :)
@redfinance3403
@redfinance3403 Жыл бұрын
Thanks so much! As a newbie to Unity I thought it was something to do with my code but turns out not! Great video and straight to the point!
@KeYatoKT
@KeYatoKT 2 жыл бұрын
My player was jittering a lot and I coudn't find why but after seeing the video and try with differents interpolate parameter I did solve the problem. It is here the most efficiant video that I found for solving this issue. Thanks 👍👍
@meer81
@meer81 Жыл бұрын
Thanks for Saving every poor soul working on a game late at night.
@TechBoxNorth
@TechBoxNorth 4 жыл бұрын
Awesome short fix tip video! Even though I'm just starting to learn Unity, this motivates me to keep going. Thanks!
@matthewmathis62
@matthewmathis62 2 жыл бұрын
I just found you, and I'm very happy I have! Thank you for this. It was both fun to watch and informative!
@r.i.p.4485
@r.i.p.4485 3 жыл бұрын
Wow thank you so much. I have an endless platformer and EVERYTHING is jittery and I was so depressed, I thought fvk, I've done all this work and it feels like sht. Thank you, you brought my spirits up again. :')
@jessislearning
@jessislearning 2 жыл бұрын
You save my life! I had the problem with the player, and it works now!
@SomebodyPickaName
@SomebodyPickaName 2 жыл бұрын
Bro! Fist of all, awesome game you have cooking there. Second, thanks so much for the helpful tip! I Googled this issue and your video was one of the top search results. It's much appreciated because you also taught me something about how the physics operate with it turned on. Thumbs up and new subscriber here!
@LostRelicGames
@LostRelicGames 2 жыл бұрын
Glad I could help ! 👊
@MaximumSpice
@MaximumSpice 4 жыл бұрын
Simple and easy fix plus no time wasted rambling. Cheers man!
@RandomUniqueStuff01
@RandomUniqueStuff01 4 жыл бұрын
Man, this tip is amazing. I was wondering why my gameobject was jittering. Thanks so much!
@LostRelicGames
@LostRelicGames 4 жыл бұрын
Glad to help! It's secret occult knowledge, or so it sometimes seems! :)
@josephj.chunta286
@josephj.chunta286 4 жыл бұрын
Thank you so much! I am working in 3D and whenever my player stops, it just jitters like crazy. This solved the issue! Your explanations are great and I couldn't have found this at a better time! You have yourself a new subscriber. ;)
@Jessiepinkmin
@Jessiepinkmin Жыл бұрын
This is a great tutorial, you explain why the jitter is happening, how to fix it and how it all works!
@marcrafat7850
@marcrafat7850 2 жыл бұрын
Thanks for this tip! You helped me a lot. This is the best quick tip I have ever seen.
@yaboishadowninja
@yaboishadowninja 2 жыл бұрын
It's always one option that messes with stuff lol. Thank you so much for this tutorial. Also, game looks SICK! I'm gonna check it out.
@garbski42
@garbski42 4 жыл бұрын
Thanks! This has been driving me crazy for months!
@LostRelicGames
@LostRelicGames 3 жыл бұрын
Me too at the time! I just had to share it ;)
@Silvertaurus_
@Silvertaurus_ Ай бұрын
4 years later and Thank You!
@befree9390
@befree9390 2 жыл бұрын
I fixed it by changing Update into FixedUpdate method for player movement. Thanks!
@theplaymakerno1
@theplaymakerno1 3 жыл бұрын
The Unity World will not be complete without you Sage John
@rubencrespo9699
@rubencrespo9699 2 жыл бұрын
Thanks for this tutorial, i had a similar problem and now is fixed
@splicy8989
@splicy8989 3 жыл бұрын
Thank you so much, i was trying to figure out how to stop my sprite from rotating and thanks to you i did it with a 3 clicks (sprite>constraints>freeze rotation)
@indedevelopement
@indedevelopement 2 жыл бұрын
I started watching your videos from couple of days before I loved them I have never seen this kind of fully explained video for unity please don't stop making videos. And make some free course for us please🙏.
@aydenbales
@aydenbales 3 жыл бұрын
Thanks for the tutorial! Worked like a charm!
@safarsaitam
@safarsaitam 3 жыл бұрын
Simple way to solve, simple and awesome kind explanation. Thank you!
@johnterblancheyoutube
@johnterblancheyoutube 15 күн бұрын
It took me a full day to find the fix for this bug 🙄 This is what it's like to build a game I guess. Thanks for the fix!
@Vanduo610
@Vanduo610 3 күн бұрын
If you are stuck on one thing, just put in the fix list and in the evening or other free time when you scroll social media bored, go find solutions and save the videos you think that helps.
@remtom
@remtom 3 жыл бұрын
this dude just saved my life
@vast634
@vast634 3 жыл бұрын
Great tip, I totally overlooked that option.
@David-bj6gw
@David-bj6gw 4 жыл бұрын
Good advice. I really can't wait to play your game!
@Ironroc
@Ironroc 3 жыл бұрын
Wow! Massively big save there. Instant fix for something that was driving me crazy. Thank you soo much! Subbed and liked :)
@LostRelicGames
@LostRelicGames 3 жыл бұрын
Glad it fixed it!
@magnusm4
@magnusm4 3 жыл бұрын
"If you use it on everything, it might have serious performance implications" "worries in 60 player servers"
@robertcirnu9129
@robertcirnu9129 2 жыл бұрын
literal life saver, you have my gratitude!
@Andrew-he5gj
@Andrew-he5gj 3 жыл бұрын
I should have just come to this channel in the first place.... would have saved a lot of drama.... greta video
@wormsquirm2707
@wormsquirm2707 2 жыл бұрын
holy shit this is amazing thankyou so much I needed this for so long
@Xeridae
@Xeridae 3 жыл бұрын
Hey, thank you so much for this. I know it was really simple but it helped me out a lot.
@tingles_studio
@tingles_studio 2 жыл бұрын
Thank you, that's fixed so much jitteriness
@baynetaoufik2741
@baynetaoufik2741 4 жыл бұрын
You and Blackthornprod are in the same level , thanks to you man .
@greninjagreg6245
@greninjagreg6245 2 жыл бұрын
I liked and subbed for the great explaining skills!!
@AndersonLuiz-zl4hm
@AndersonLuiz-zl4hm 2 жыл бұрын
Sir, you saved my life. Thank you so much for this video!!!
@Smumbo
@Smumbo 4 жыл бұрын
In order to save on performance, could there perhaps be a system where the interpolate setting is toggled for rigid bodies that enter a certain radius around the player? That way we don't waste performance on further away objects since we might not care about accurate physics simulation at a distance. Though I'm also wondering if toggling that interpolation setting at runtime might be a performance hit in and of itself.
@LostRelicGames
@LostRelicGames 4 жыл бұрын
That's a very interesting idea! And i would say probably yes. Will test this out. Great idea mate
@Spaceman68ok
@Spaceman68ok Жыл бұрын
Have you made this work?
@constantinemartin2441
@constantinemartin2441 2 жыл бұрын
This fixed my problem right away thank you!
@RomMor-s5k
@RomMor-s5k 4 жыл бұрын
Great stuff! Will definitely keep in mind for the future
@PhilDeveloper
@PhilDeveloper 3 жыл бұрын
I love tutorials like this! thank you!
@efadsafi6474
@efadsafi6474 2 жыл бұрын
Thanks man. It really was a pain in the butt...
@woltwa
@woltwa Жыл бұрын
the GOAT
@LukeHwarang
@LukeHwarang 3 жыл бұрын
How peculiar. In my case, I had to set the interpolate to "none" or "extrapolate" to stop my jittering effect. However I'm making a 3D game with 2D sprites, the jittering was happening when the player tried to walk throught walls. Anyway this video gave me the idea to mess with the interpolate options and solved my problem. And also now I've learned a new thing. Thx mate! o/
@Windstale
@Windstale 4 жыл бұрын
Wow man this tutorial is save my life 👍👍👍👍👍 great video keep it up.
@SiddharthVerma_911
@SiddharthVerma_911 4 жыл бұрын
TIL, thanks 👍🏻 The art looks fab 😄🤩
@kkm002
@kkm002 3 жыл бұрын
Lifesaver! Thank you so much for this
@lagio0lagio059
@lagio0lagio059 Жыл бұрын
Thank you bro, you have my full gratitude
@Krentiles
@Krentiles 3 жыл бұрын
Thank you so much. You are my Game DevGod.
@ToeCat
@ToeCat 4 жыл бұрын
hooly shit this saved my headache
@Leito4Gaming
@Leito4Gaming Жыл бұрын
You saved me! Thank you so much! Like and new sub!
@ash7324
@ash7324 11 ай бұрын
Got it in one! Nice on bro
@Wayloz
@Wayloz 2 жыл бұрын
Super helpful information! However (and I don't fault you if you don't know) in VR this isn't solving my issues. Currently I have a charactercontroller than handles my player movement, and from what I understand when I grab an object, it follows my hand by using my controller's velocity and applying velocity to the object. When walking around the object trails behind for a split second and then catches up with my hand. I figure this is due to me used a moreso kinematic movement system and there being no directional velocity for my controller when moving so it guesses and catches up. Though multiple things I said there could be wrong, I'm not the most informed but I'm willing to learn. Thanks again!
@theorionfrontier2742
@theorionfrontier2742 4 жыл бұрын
Really good tipp, thank you for that !
@pedromartins9049
@pedromartins9049 2 жыл бұрын
Finally, an answer to my prayers
@stevencraeynest7729
@stevencraeynest7729 4 жыл бұрын
Another thing that causes jitter is when you apply forces in Update() rather than in FixedUpdate(). Which is annoying, cause you actually have to read input in Update(). So if you need to apply forces based on input, you need to store the input in variables in Update(), and then use them in FixedUpdate() to apply forces.
@ijidau
@ijidau 3 жыл бұрын
This isn't the case if you use the new Input System which is event based and does not rely on Update() polling.
@nerdimesrobcou9529
@nerdimesrobcou9529 3 жыл бұрын
It can be too because camera movement is updating in Update() and the position of object is updateing in FixedUpdate(). If you put camera into FixedUpdate() it should work too.
@sinho113
@sinho113 2 жыл бұрын
wow, i tried the fix on the video and didnt work until i saw your comment it it worked first try ;D thanks bro haha
@aleksandraopacic2901
@aleksandraopacic2901 Жыл бұрын
I can second that, wow, I also tried this and many many other solutions that didn't work and it was the camera all along, lifesaver thank you!
@rizojunuzovic13
@rizojunuzovic13 2 жыл бұрын
great video. straight to the point. thank you
@dylantryalot6187
@dylantryalot6187 3 жыл бұрын
Thank you so much. Great explanation.
@nishchaybhutani4507
@nishchaybhutani4507 4 ай бұрын
Thanks a lot! You're a lifesaver!
@pad.3
@pad.3 4 жыл бұрын
you have saved my bacon, mr
@arbabgull4813
@arbabgull4813 3 жыл бұрын
thanks for the guide helped me a lot
@YehielCertner
@YehielCertner 4 жыл бұрын
Amazing! so simple so helpful!!! thank you!!!!
@rexxthunder
@rexxthunder Жыл бұрын
Thank you! That fixed my issue!
@CirbyWeh
@CirbyWeh 4 жыл бұрын
Really nice tip, thank you!
@BlizAce256
@BlizAce256 2 жыл бұрын
Thank you so much. You are a legend!!!!
@perfecthatred7719
@perfecthatred7719 4 жыл бұрын
Nice this was very helpful.
@modestcornelius4744
@modestcornelius4744 2 жыл бұрын
This was a life saver😁
@SMT-ks8yp
@SMT-ks8yp 3 жыл бұрын
IDK if using velocity as animation trigger was good idea, but this seems to help when I need to determine if the player stays still.
@ahmedsiddique2998
@ahmedsiddique2998 4 жыл бұрын
ok i used interpolation i got a hint from some forum but im applying it to an enemy ragdoll and some time my enemy ragdoll becomes glitchy u know like a monster extra stretching every body part do you have tips how to fix it ? im also using timescale its an action camera + body hit in slow motion I hoe u understand
@jasonazevedo2881
@jasonazevedo2881 3 жыл бұрын
you are a GOD my friend!
@_g_r_m_
@_g_r_m_ 3 жыл бұрын
Interpolation makes my player ignore colliders and also doesn't solve the jitter, weird, glad for the ones who worked for
@pcernuska
@pcernuska 3 жыл бұрын
Try to extrapolate first if it would work fine and in case it is less resource hungry.
@cazterk
@cazterk 3 жыл бұрын
easy does it, this video is golden thank you
@appsyz5103
@appsyz5103 3 жыл бұрын
Thank you!
@JK96CZ
@JK96CZ Жыл бұрын
I'm still a beginner, so it may be trivial, but I've got one question about that. If you use it on more things, it has a performance issue, but does that apply on currently moved objects or overall? Let's say I would have 100 of these wagons in my level, each with interpolate, but they could be only two at a time moving, cause they are spread around the whole level and there is no way of getting more than two at a time to move. In the second example I would have, let's say 20 objects with interpolate but all of them in the current scene and moving. Which would hit performance harder ?
@codycanipe4415
@codycanipe4415 3 жыл бұрын
wow, nice one, thanks man!
@dannychatzi4834
@dannychatzi4834 4 жыл бұрын
Cool tip! Thank you!
@dallen2403
@dallen2403 Жыл бұрын
Amazing. You're awesome. Thank you
@franham
@franham 2 жыл бұрын
Thank you very much! I subscribe!
@fruitfunfitness3584
@fruitfunfitness3584 2 ай бұрын
I suspect turning the camera update mode to fixed update could also be a potential fix.
Breaking up Code in Unity (Important game dev tips for beginners)
18:36
Lost Relic Games
Рет қаралды 128 М.
Unity Movement [RigidBody vs Translate]
9:00
Press Start
Рет қаралды 286 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
SCRIPTABLE OBJECTS in Unity
8:57
Brackeys
Рет қаралды 1 МЛН
The BlackthornProd GameDev Challenge Controversy - My Response
8:04
Lost Relic Games
Рет қаралды 68 М.
The Reason this Game Took Me 8 Years to Make!
5:25
Plasma Studios Dev
Рет қаралды 4 М.
Is this the best tool for 2D level design?
2:00
Vector Game Dev
Рет қаралды 6 М.
TOP DOWN MOVEMENT in Unity!
22:30
Brackeys
Рет қаралды 1,2 МЛН
The Death of Unity
15:35
Lost Relic Games
Рет қаралды 279 М.
A Better Way To Manage Collision in Unity (For Beginners)
6:17
Lost Relic Games
Рет қаралды 62 М.
How to make 2D GLOW in Unity!
15:56
Brackeys
Рет қаралды 608 М.
I released game in single year without engine
7:21
Undermountain Dev
Рет қаралды 1,6 М.