Fixed, Spring, Hinge, Character & Configurable Joint explained - Unity Tutorial

  Рет қаралды 354,818

DitzelGames

DitzelGames

6 жыл бұрын

Timecodes:
0:26 Scene Setup
1:15 Fixed Joint
3:33 Spring Joint
6:54 Hinge Joint
9:52 Character Joint
11:55 Configurable Joint
This is a tutorial for unity, that I wanted to make a long time ago. I would really wish that there was a tutorial out there, when I first used joints. And to be honest I am not quite sure, why sometimes the physics have a litte bit off. But nevertheless I present you these joints.

Пікірлер: 145
@luuklsl
@luuklsl 3 жыл бұрын
Thank you, I was struggling so hard with getting a configurable joint to work as I wanted. You explained it so much better than the Unity documentation. Showing off with a good example! Thank you so much!
@lucutes2936
@lucutes2936 3 ай бұрын
ZOV
@Caden_Burleson
@Caden_Burleson 4 жыл бұрын
Thank you kind sir! I'm getting into active rag-dolls and this really helped clear up a lot of frustration with what the differences were between all of the different joints.
@benzen2346
@benzen2346 5 жыл бұрын
great video! I caught a really good second lesson and that is your rapid prototyping technique on a test project. This will save me a ton of time!
@AbdelJN
@AbdelJN 2 жыл бұрын
Yo this video is great! So many dev's speak at length unnecessarily to where I have to 1.5x the video. Not yours! Clear and to the point. Thanks so much!
@SuperheroCoding
@SuperheroCoding 4 жыл бұрын
Thanks so much! What a great rundown of all the joint types. Very useful stuff - you've got a new sub!
@Flopsaurus
@Flopsaurus 2 жыл бұрын
Wow, having this joint customization makes Unity extremely powerful! This is AWESOME. Thanks for the tutorial!!
@Colonies_Dev
@Colonies_Dev 5 күн бұрын
you know combining simpler joints gives the same power but less annoying weirdness with 200 exposed fields giving different options.. i think unity should strip down the joints and allow users to combine functionalities
@ChaosCain4
@ChaosCain4 4 жыл бұрын
Thank you so much, it really made them a lot clearer!
@sulfurasmr6365
@sulfurasmr6365 2 жыл бұрын
thank you so much! I'm just learning physics in unity so this is incredibly helpful
@atom_zero5413
@atom_zero5413 3 жыл бұрын
Thank you so much for the video! One tip, if i may: i found out that if you "test" by doing an animation, it's way easier to test any interaction (i.e. animate the FreeCube), instead of moving it in Play Mode. Cheers!
@PepsiFruit
@PepsiFruit 4 жыл бұрын
"Heres the time codes except you can press them" Setup 0:26 Fixed joint 1:15 Spring joint 3:33 Hinge joint 6:54 Character joint 9:52 Configurable joint 11:55
@farhanhakim2189
@farhanhakim2189 3 жыл бұрын
Thank you
@TwentysixPM
@TwentysixPM 5 жыл бұрын
Thank you! You really helped me understand configurable joints.
@battosaijenkins946
@battosaijenkins946 4 жыл бұрын
@DitzelGames, Hi there I may be couple years too late but @2:05 you never mentioned that you need to press play to move the fixed joint. Otherwise they don't move together, my question is can you move those joints when NOT pressing play? In other words during the regular scene? Thx in advance.
@leonardofraga5130
@leonardofraga5130 3 жыл бұрын
Thank you man. 2 things though. You should definitely enable gizmos. It's way easier to understand what's happening. And at the beginning where you tried to collide one box into the other to break the joint. In that case, the joint break force wasn't the problem. Unity actually didn't detect any collider at all. To prevent that, just change your Rigidbody Collision detection to "Continuous" instead of "Discrete".
@HIN30N
@HIN30N 4 жыл бұрын
Exactly what I was looking for! Wow thanks.
@oc9438
@oc9438 5 жыл бұрын
just what I needed, thank you
@interpro
@interpro 4 жыл бұрын
Awesome! Thanks for the great video!
@Oxmond
@Oxmond 4 жыл бұрын
Cool! Great tutorial! 👍🤓
@crump96
@crump96 3 жыл бұрын
thanks for awesome tutorials
@drewmileham202
@drewmileham202 4 жыл бұрын
One of the best Unity tuts ive seen. Thanks
@Esbenellocos
@Esbenellocos 5 жыл бұрын
Nice tutorial, thanks mate
@nitinjosephv
@nitinjosephv 6 жыл бұрын
Good Video Dude! Thanks!
@RiHezBestSmiteMontages
@RiHezBestSmiteMontages 3 жыл бұрын
thanks exactly what i was looking for
@TheoParis
@TheoParis 4 жыл бұрын
Thanks This is very helpful!!
@singletonpattern4797
@singletonpattern4797 5 жыл бұрын
Thank you mery much ,good tutorial .
@juhohyv8227
@juhohyv8227 4 жыл бұрын
thank you and have a nice day :)
@zbarba
@zbarba 3 жыл бұрын
imagine rigging a chatacter with these joints OwO
@waverider1039
@waverider1039 2 жыл бұрын
Thank you a lot for this video.
@SoaringSimulator
@SoaringSimulator 3 жыл бұрын
The 3DBuzz physics tutorial was awesome. But I can't find it anymore. Thanks for sharing!
@frankbraker
@frankbraker 4 жыл бұрын
Liked. Saved. Subbed. Commented!
@goventas5091
@goventas5091 Жыл бұрын
works, chock-full thanks!
@GameMakerGuy
@GameMakerGuy 3 ай бұрын
thank you, i was kinda wanting to make a ragdooll without simplified joints, and the hinged joint should work
@lojain7707
@lojain7707 4 жыл бұрын
شكراً جزيلاً : )
@MattStuttardParker1
@MattStuttardParker1 3 жыл бұрын
super helpful :)
@Apock1239
@Apock1239 3 жыл бұрын
Your voice is adorable and your video is informative, perfect. Thanks for putting this together!
@monkeyrobotsinc.9875
@monkeyrobotsinc.9875 3 жыл бұрын
elmer fudd?
@aadarshsinghbhandari3233
@aadarshsinghbhandari3233 3 жыл бұрын
Nice video sir 👏👏👍❤️ Love from India❤️❤️
@koordcoach
@koordcoach 2 жыл бұрын
Awesome!
@escueladeagentescriogralpe1237
@escueladeagentescriogralpe1237 Жыл бұрын
Worked, thx
@Kinosei30
@Kinosei30 3 жыл бұрын
I would like to add a hinge joint on an object that will be rotating with another larger object (basically a Ferris Wheel), but the hinge joint is too loose, it starts spinning like crazy at some point, no friction at all. Raising the mass or angular drag of the rigidbody does nothing, and raising the drag makes it stiffer but also feels much more resistance to the air. Do you know anyway of making it less loose?
@Necronomicron8
@Necronomicron8 5 жыл бұрын
16:30 Shouldn't you have changed Rotation Drive Mode to Slerp as well? You basically just disabled springs here.
@gendalfgray7889
@gendalfgray7889 5 жыл бұрын
Hellow, nice tutorial! But can you explain how ancor axis in configurable joint works? I suppose it needs for turning limit area. I'm making body with 2 limbs attached to it. And those limbs must have assimetrical angle limits on 2 direction. 1) how rotate areas with this axis? Only x angle axis have min max setting. 2) also areas on both limbs looking in one direction, but i need them to be mirrored. How to mirror them? I tried to change axis values and areas moved in weird way. May be i should use several hinge joints, but i think it will be harder to script. If so, i still want to know how axis work.
@wn9521
@wn9521 5 жыл бұрын
how would I attach my character(which has a fixed joint) to a object like a cube through script? for instance I want to have a interaction script on the cube I want to pick up and have a interaction radius of about 0.4 so that when the character enters the interaction zone the fixed joint automatically enables between the two objects and he can move around with it
@nimbona4
@nimbona4 4 жыл бұрын
Hi, did you manage to solve this? I'm facing the sam problem :)
@ihavecreatism9776
@ihavecreatism9776 4 жыл бұрын
There is a big problem in your idea. The player is going to grab things, that means he is responsible for the interaction script. Here is the solution: The player needs a fixed Joint in order for this to work. FixedJoint fixedJoint = GetComponent(); fixedJoint.connectedBody = new Rigidbody(); //replace new Rigidbody() with the target rigidbody. This is just for the logic of setting the Rigidbody of a joint. You still need to find the Rigidbody somehow? If you need more information, I'm going to reply in this thread.
@random_precision_software
@random_precision_software 5 жыл бұрын
How would connect a spring or hinged joint using c# script, ?
@Eirenband
@Eirenband 3 жыл бұрын
excellent
@trgamer3193
@trgamer3193 5 жыл бұрын
Hello, why my hinge joint is looks like 2d ? i need to make like you but it looks circle, i need spherical hinge joint ? its only effected horizontal
@jmun3688
@jmun3688 3 жыл бұрын
Thanks!
@wildlonewolf445
@wildlonewolf445 3 жыл бұрын
thank you
@aaaaaaaa9478
@aaaaaaaa9478 4 жыл бұрын
Is there a way to give rigidbodys connected with fixed joint gravity mine just float
@ponysonic
@ponysonic 3 жыл бұрын
anyone know why the physics no long applies any motion when you child the joint bones to the parent?
@calvinterakaspeedr
@calvinterakaspeedr 3 жыл бұрын
anyone know how to make like a drawbridge. im trying to make a dive onto truck trailer thing that you can lower and rais a ramp using two butens
@katifurkan
@katifurkan 3 жыл бұрын
good video
@dancehall1931
@dancehall1931 5 жыл бұрын
Newbie here. Would a spring joint approach make sense for trying to create a pole vaulting mechanic? Or what would be a good approach for creating pole vaulting?
@thenukdevendra1902
@thenukdevendra1902 4 жыл бұрын
Can u use a spring joint swining like a rope or a grappeling hook?
@uRealReels
@uRealReels 3 жыл бұрын
Cool video... but how did you get the objects to move during simulation [play]?
@laikenfui2191
@laikenfui2191 2 жыл бұрын
Goat
@seeking9145
@seeking9145 Жыл бұрын
Does anyone know how to controll joints of a asset by code? For custome movements for example
@goktugozleyen9766
@goktugozleyen9766 2 жыл бұрын
Hello there nice video nice explain. I have a question. How can i get the thumbnail physic i must to do that but i cant find source. Shortly, i am developing hyper-casual games. And i stack boxes to my pallet truck. If i swerving my character to right, boxes are smoothly curved to left. How can i do that ?
@Aidendenden233
@Aidendenden233 3 жыл бұрын
THX!
@pavanmp4503
@pavanmp4503 Жыл бұрын
What if i need to do the series connection like spring then how can I do the connections ?
@paulrobinson5490
@paulrobinson5490 6 жыл бұрын
Nice tutorial again. I am new to game dev and was wondering if you could do a tutorial based on a mobile multi level game, explaining setting up of where the touch controller screen goes and a bit of explanation about correct use of 'game manager'. Is it possible to have the main character teleport into the level start and teleport out at the end of each level. Any help on these matters would be amazing, thanks, Paul
@DitzelGames
@DitzelGames 6 жыл бұрын
Yes, I will consider this.
@paulrobinson5490
@paulrobinson5490 6 жыл бұрын
You are the man. Next time I am paid, I am going to become a patreon on your site because for one, your tutorials are amazing, and two, at least you reply to people, nice. Thanks, Paul
@sergiopamplona1676
@sergiopamplona1676 2 жыл бұрын
hello, I have a problem with some fixedJoint and hingeJoint, could you help me how to solve them Thank you
@Vlad-Ra
@Vlad-Ra 3 жыл бұрын
Thx m8s
@user-uj7go3mh8u
@user-uj7go3mh8u Жыл бұрын
10/10
@storm5009
@storm5009 6 жыл бұрын
Please make another tutorial
@osamazynladen_
@osamazynladen_ 2 жыл бұрын
thx
@vissenekku
@vissenekku 2 жыл бұрын
I'm struggling so much with this. The anchor point simply does not work correctly and I can't figure out why. Instead of anchoring where it's supposed to, it always goes to the center of mass instead. And it makes no sense.
@floricide9669
@floricide9669 4 жыл бұрын
How do i assign the connected body through the script
@leaves_reality
@leaves_reality 3 жыл бұрын
if (!GetComponent().connectedBody) { GetComponent().connectedBody = GetComponentInParent(); }
@lucutes2936
@lucutes2936 3 ай бұрын
thxxx
@arnaudb4357
@arnaudb4357 5 жыл бұрын
Nice tutorial thanks! what kind of joint can be rigged with more than 1 other objets?
@DitzelGames
@DitzelGames 5 жыл бұрын
You can add more than one joint to a rigidbody to archive this.
@arnaudb4357
@arnaudb4357 5 жыл бұрын
@@DitzelGames i tried to link a tank track with all types of joints but nithing Happens
@smd1507
@smd1507 4 жыл бұрын
Hey, i know this is pretty old already. If I wanted a kunai or let's say a karambit to spin around a finger by gravity applied in VR like on a springjoint, which one would i choose? I can't seem to get it to work haha. Still pretty informative video. Thank you very much!
@aaaaaaaa9478
@aaaaaaaa9478 4 жыл бұрын
Spring
@JStankXPlays
@JStankXPlays Жыл бұрын
Reefer joints
@TayakornRakwetpakorn
@TayakornRakwetpakorn 4 жыл бұрын
2:11 notice that he did that in play mode
@user-bh8gi3et9l
@user-bh8gi3et9l 4 жыл бұрын
hahaha . thank you dude , i was so exicted ... and not see it .. you solved me a lot of hours
@danopris3056
@danopris3056 5 жыл бұрын
slider joint ?
@fortspartahq3767
@fortspartahq3767 2 ай бұрын
Could this method be used to make fishing mechanisms?
@openingchain328
@openingchain328 2 жыл бұрын
It's like I'm learning from Jens Bergensten
@TechDunk
@TechDunk Жыл бұрын
If you add a 0:00 timestamp in the description youtube can make chapters for the video
@J3R3MI6
@J3R3MI6 4 жыл бұрын
Excellent tutorial! Do you know how to strengthen a fixed joint?
@aaaaaaaa9478
@aaaaaaaa9478 4 жыл бұрын
The break and torque value?
@moonlightvi7534
@moonlightvi7534 2 жыл бұрын
gg bro
@GBart
@GBart 2 жыл бұрын
I can not get any hinge joint working, no matter how hard I try
@nepicbutbad
@nepicbutbad 4 жыл бұрын
Thanks for helping you have a place in my games credits what do a name you ?
@monkeyrobotsinc.9875
@monkeyrobotsinc.9875 3 жыл бұрын
HEY NO FAIR!!!
@Assniffer
@Assniffer 5 жыл бұрын
Can you guide me where should a beginner like me start from i don't know about any of these like why to use this ?
@devinhunter8609
@devinhunter8609 5 жыл бұрын
You should use Unity's learn website. It has a lot of different tutorials as well as a lot of documentation about different aspects of unity too. unity.com/learn
@andreamaiellaro5816
@andreamaiellaro5816 5 жыл бұрын
So, for having a Punching Bag effect should I use Spring Joint??I think It makes sense....what do you think about ?
@DitzelGames
@DitzelGames 5 жыл бұрын
Sounds good!
@game_developer_
@game_developer_ Жыл бұрын
3:19 Now Its completely broken 😭😭
@samiminer9338
@samiminer9338 2 жыл бұрын
This doesn't have all the joints though.
@JaredQueiroz
@JaredQueiroz 3 ай бұрын
Broh, how can not exist a single video on articulation body?? wtf
@adirmugrabi
@adirmugrabi Жыл бұрын
Scrap mechanic used this?
@nojanskaitis
@nojanskaitis 2 жыл бұрын
If only you had put ( 0:00 intro ) at the top of that list of timestamps then this video would have chapters visible for anyone without going to the description. Yes, I'm lazy. What of it?
@monkeyrobotsinc.9875
@monkeyrobotsinc.9875 4 жыл бұрын
Ok
@demi-god5158
@demi-god5158 4 жыл бұрын
You tell us about them but you never show us how to roll in the first place dawg
@halivudestevez2
@halivudestevez2 Ай бұрын
so it's break, and not brake force!! OMG! :D
@bosstankproductions1304
@bosstankproductions1304 Жыл бұрын
Did he shave? Or if he’s lost weight too good work man idk 😂
@user-vf7xv9xy9n
@user-vf7xv9xy9n 3 жыл бұрын
I feel so bad when I realize I have to use Configurable joint...
@abuUthmani
@abuUthmani 3 жыл бұрын
what are u using that for?
@user-vf7xv9xy9n
@user-vf7xv9xy9n 3 жыл бұрын
picking up objects like in Portal. I made it using rigid body already. I can share if you want
@abuUthmani
@abuUthmani 3 жыл бұрын
@@user-vf7xv9xy9n that would be great
@user-vf7xv9xy9n
@user-vf7xv9xy9n 3 жыл бұрын
// Follow after player hands public IEnumerator Follow(Transform playerHands) { while (held) { FollowPosition(playerHands); FollowRotation(playerHands); yield return null; } } // Follow player hands rotation private void FollowRotation(Transform playerHands) { // Rotating Vector3 desiredRotation = playerHands.eulerAngles; float xAngle = Vector3.SignedAngle(transform.up, playerHands.up, Vector3.right) / 90; float yAngle = Vector3.SignedAngle(transform.forward, playerHands.forward, Vector3.up) / 90; float zAngle = Vector3.SignedAngle(transform.up, playerHands.up, Vector3.forward) / 90; Vector3 direction = new Vector3(xAngle, yAngle, zAngle); rigidbody.angularVelocity += (direction * rotationForce) / rigidbody.mass; // Damping float dampingValue = 1 - (1 / (Mathf.Abs(yAngle) * rotationDamping + 1)); float lookUpAngle = Vector3.Angle(playerHands.forward, Vector3.up) / 90; rigidbody.angularVelocity *= dampingValue * lookUpAngle; } // Follow player hand position private void FollowPosition(Transform playerHands) { // Moving Vector3 desiredPosition = playerHands.position; float distance = Vector3.Distance(desiredPosition, rigidbody.position); Vector3 direction = (desiredPosition - rigidbody.position).normalized; rigidbody.velocity += (direction * distance * movingForce) / rigidbody.mass; // Damping float dampingValue = 1 - (1 / (distance * movingDamping + 1)); rigidbody.velocity *= dampingValue; }
@user-vf7xv9xy9n
@user-vf7xv9xy9n 3 жыл бұрын
@@abuUthmani That's not some professional programming here. But it works. It would be better if I used Quaternions for rotation, but I didn't learn them so I used my own method.
@bulervideo
@bulervideo 3 жыл бұрын
0:00 in thifff video, i cracked already lol
@acharya1574
@acharya1574 3 жыл бұрын
the cubes are not setting up!!
@drwarit1
@drwarit1 3 жыл бұрын
10:45 perfect for worms
@redmanone6963
@redmanone6963 5 жыл бұрын
Дякую(Ukraine)
@erenjeagerot
@erenjeagerot Жыл бұрын
Representation of the fixed joint here is not entirely correct. You can use fixed joint in chains like hinge joint. You can try it on unity if you want. You will see that fixed joint can be used like hinge joint.
@legendarylegacy3977
@legendarylegacy3977 Жыл бұрын
in our subculture it is DALLAS-ing (if you rember the old TV series)... Drink every ti they drink wNice tutorialskey
@jameslohr6021
@jameslohr6021 2 жыл бұрын
For anyone watching this, the explanation for the character joint is incorrect. The "Axis" parameter is the main twist axis (as documented in the Unity docs), not the swing axis. The whole section on the character joint is all wonky, as the axes are not correctly set, and what the author is saying does not match what's actually happening!
@anthonyder3685
@anthonyder3685 6 жыл бұрын
Why is every video on spring joint 100% the same? I don't think anyone really understand them...
@DitzelGames
@DitzelGames 6 жыл бұрын
I think I explained every detail of it - Like everyone else! Do you miss anything?
@anthonyder3685
@anthonyder3685 6 жыл бұрын
DitzelGames well that is the problem all videos are 100% the same. If i watch one i have seen them all. I wanted som1 to explore implementing in a practical sense but nobody does this. Everyone just does the same demo video...
@twoshotted
@twoshotted 5 жыл бұрын
because they're showcasing the same exact thing...
@DitzelGames
@DitzelGames 5 жыл бұрын
​@@anthonyder3685: See my rope physics video. There I used it to create a rope kzfaq.info?o=U&video_id=Cecp4a7FsTU I think there are so many videos out there that shows how to use it in a practical sense. They are simply not just labeled "Spring Joint in a practical use case"
@jacobbijani
@jacobbijani 5 жыл бұрын
@@DitzelGames thats the youtube studio edit link FYI
@alphakhabar4417
@alphakhabar4417 Жыл бұрын
haters guna hate.
@tutomovo8696
@tutomovo8696 4 жыл бұрын
Kann es sein das du Deutsch bist klingt ziemlich stark danach
Rope Physics - Unity Tutorials
9:39
DitzelGames
Рет қаралды 195 М.
Физика в Unity - 10. Joint
37:20
Eccentric Games
Рет қаралды 71 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 7 МЛН
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 16 МЛН
Creating Rope Objects with Physics | Unity Tutorial
10:36
Sasquatch B Studios
Рет қаралды 20 М.
Unity procedural animation tutorial (10 steps)
1:05
Codeer
Рет қаралды 403 М.
Unity Physics: Static, Kinematic, Dynamic
7:07
Smart Penguins
Рет қаралды 44 М.
Using a Configurable Joint to Create Movement without Code in Unity
9:19
Unity3D Physics - Rigidbodies, Colliders, Triggers
30:25
Jason Weimann
Рет қаралды 158 М.
Basic Rope in Unity - Rope Physics Part 1
9:30
Auliyaa's Games
Рет қаралды 49 М.
Unity - Stabilising Fixed Joint Logic - Compound Rigidbodys
10:23
Nimso Studios
Рет қаралды 15 М.
How Do Unity 2D JOINTS WORK And Which One To USE?
10:26
Freedom Coding
Рет қаралды 7 М.
RAGDOLL PHYSICS in Unity!
17:59
Brackeys
Рет қаралды 502 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН