I also changed the drag and mass value by giving it a random value on death so stationary deaths all look different now too. Thanks for the tutorial.
@andreranulfo-dev86075 жыл бұрын
The only tutorial that really teaches how to do it!
@humanwelcomemat95324 жыл бұрын
true
@DatmanMason4 жыл бұрын
All in under 10 mins this was perfect thank you
@lildgamedev68853 жыл бұрын
Dude thanks so much for this tutorial! It was relatively easy to implement into my game and it makes it 1000x better! I mean who doesn't love ragdoll physics lol
@ColtPtrHun4 жыл бұрын
Many thanks, you've been a big help! I couldn't find out what was messing up my animations, when I was not in ragdoll mode. It was the IsKinematic attribute on the rigidbodies. -Peter
@MrFarkasOfficial4 жыл бұрын
probably the best ragdoll activation tutorial and code out there. very clean and precise work. took me an hour to pull it off though because instead of void Start() i wrote void start(). but i`m a n00b. works now though, thanks!
@elitefusionz024 жыл бұрын
i started in 2017 im still a noob lmao dont feel bad im right here with you
@Peter-rq1qz5 жыл бұрын
Exactly what I was looking for, thanks!
@firemind22655 жыл бұрын
happy to hear :)
@glur83473 жыл бұрын
THX BRO IVE SPENT HOURS LOOKING FOR SOMETHING LIKE THIS u got a new sub :)
@chiperchiper17822 жыл бұрын
thanks man really nice video!
@0aleolijest6783 жыл бұрын
Finally, I found what I was looking for!
@Carteeeer522 жыл бұрын
Awesome tutorial bro!
@GreekRussian367 Жыл бұрын
can you please tell me how to detect the collision of an object then activate the ragdoll please? I spent my whole night putting together a game and this was one of the pieces, but Im new to unity so I dont really know how to do that. :(
@nsb_tv58202 жыл бұрын
very very good thank you
@hamzehalshishani50534 жыл бұрын
Thanks a lot! This was very helpful! I've seen a couple of tutorials on the Ragdoll effect, and this is the best one I've seen tbh. I have a question though, let's say I want the character to fall, then I want to enable the animator, it's weird when I turn on the animator, the character would half sink into the floor, but when I have it disabled, the character would stay above the floor, and fall correctly when ragdoll was turned on, but without animation. Thanks!!
@ianstancliffe98764 жыл бұрын
Thanks! Mine doesn’t use a gun, it uses a knife, but this is still very useful.
@samgillespie23244 жыл бұрын
Ahh i just spent 15 minutes figuring out why i had an error message saying "Unity cannot convert type (Rigidbody[]) to (UnityEngine.Rigidbody). I found out that I had written "GetComponent_InChildren" instead of "GetComponentsInChildren. Love you too coding...
@thesauceindustry44234 жыл бұрын
thanks man its a good tutorial, i had to go back ALOT of times though because you're talking at the speed of light
@firemind22654 жыл бұрын
Happy I could help :) You can put the video in slowmo mode if you have trouble following along.
@satobi462 жыл бұрын
Thanks, this works good!
@dmudda905 жыл бұрын
hey where is the not linked linked video you talked about at 1:17? :D Much thanks for this Tutorial!
@firemind22655 жыл бұрын
Sorry mate, guess I forgot to link it. Here is the tutorial that I was talking about: kzbin.info/www/bejne/j52cfpuepKeefLc
@dmudda905 жыл бұрын
@@firemind2265 Awesome, thank you!
@nikolaradovic9282 жыл бұрын
I've followed your tut and got it working almost instantly but for some reason ( and it is very random ) when I shoot at my enemy he kinda gets into a ragdoll but his ragdoll seems locked, in a sense that he definitely activates ragdoll but his body snaps into this weird pose and it's always the same pose, so to recap - he is ragdolled but his limbs snap into a weird pose that is always the same and from that point on he is locked in that pose but is also a ragdoll. hope this makes sense and that I've explained it so that you can understand. perhaps you have some suggestion to why that might occur during that transition to ragdoll ? thank you.
@ivangamer80225 жыл бұрын
Bro, awesome tut. Have a nice day
@stonerbone4 жыл бұрын
thank you for the video, only tutorial i could find on this ps, this is really fun with a shotgun and lots of knockback :))
@robstan33784 жыл бұрын
I 've lot of enemy model prefab, how can I ragdolled all ? Do you have any idea of it?
@lewaplay3 жыл бұрын
Is that object will able to use gravity?
@humanwelcomemat95324 жыл бұрын
Great tutorial!
@luaykashef3 жыл бұрын
how did you make the ragdoll follow you
@necrodogmtsands4s7254 жыл бұрын
Hello Firemind. Could you do a tutorial where the player can drag the ragdoll after killing? Thanks. n_n
@JJsHowToChannel2 жыл бұрын
could i just use the get component function to turn off the animator then the ragdoll will turn on.
@elitefusionz024 жыл бұрын
im trying to make a zombie that enters ragdoll when its health reaches
@elitefusionz024 жыл бұрын
never mind i was able to mess with the script and get it to work
@marianofxg4 жыл бұрын
@@elitefusionz02 How?
@elitefusionz024 жыл бұрын
marianofxg just trial and error just get in there and get your hands dirty my guy thh id give you my script but i have much more added to it but i can tell you something to try which would be on Void Die() { (make all your components that youre using say like) Nav = GetComponent.enabled = false; } or somethin. i am writing this on my phone so i cant remember exactly. If you want you can add me on discord and i can explain more there Discord: Ducky#6817
@humanwelcomemat95324 жыл бұрын
heres how i did it public void takeDamage(float amount) { health -= amount; if (health
@samgillespie23244 жыл бұрын
My character just flies away if it has rigidbody but if i take the rigidbody off then i get an error saying that there is a script looking for a rigidbody on that object but there isn't a rigidbody there. Any suggestions? P.S. I have tried messing around with every combination of "isKinematic" and "UseGravity" in rigidbody settings in the inspector.
@presleyknox98842 жыл бұрын
what is your gun script ???
@sourabhvijay59254 жыл бұрын
can you make a tutorial on fps shooting mechanism like dead target zombie for mobile ?
@sirplayalot10203 жыл бұрын
Is it possible to have it come back alive?
@gvls71644 жыл бұрын
Hi , how can i make it so as the explosion will not affect my character that has rigidbody too??
@sealclips72363 жыл бұрын
This is a step up from enabling and disabling two gameobjects!
@PremiumGameRider4 жыл бұрын
Thanks bro, you really helped me:))
@MikalaiDzik5 жыл бұрын
Thanks a lot!
@ari3.083 жыл бұрын
Question: When I shoot on the Floor in my case it's just a scaled plane, the Enemy falls, but he won't become a ragdoll and every other object in my scene moves can anyone help me?
@yloh_40033 жыл бұрын
help me when my enemy is a rag dol it fal true the ground what to do
@safilamer4 жыл бұрын
thank you so so much
@beuto3 жыл бұрын
Thank you !!!!!!!!!!!!!
@LION3032004 жыл бұрын
i wonder ? how to do the opposite? when the player dies and the enemy stop the attacks and continue patrolling ? would you help a noob like me?> in my situation my player dies and they keep attacking him until he re-spawn again >< !!
@skintubby55664 жыл бұрын
my enemy does not ragdoll pls help
@noreasonchannel40125 жыл бұрын
Damn, just Damn.
@madhavvats26055 жыл бұрын
Can it works in cover+shooting system asset in unity plz tell me
@kazrepair72194 жыл бұрын
I try the following script for may player when i get hit and die the ragdoll will activate but not work i think it will only work in enemies but thanks for giving us some idea for game developing godbless
@jaggers30614 жыл бұрын
Can anyone help me with these two questions? Basically, I have a nav mesh agent for my enemy so it continues to follow me even when it’s dead. My second question is how to make it so the enemy doesn’t die after one shot, thank you
@arish72315 жыл бұрын
Nice and easy
@loftop18754 жыл бұрын
My ragdoll is just flying away to the sky lmao fix ? FIXED But my ragdoll deosnt working it's working like anti ragdoll
@erikuploads37863 жыл бұрын
can you stop writing the code in hyperspeed
@johnathon57274 жыл бұрын
probly something to do with my enemy AI script but the body follows me after the ragdoll lol.
@XRDeveloper-014 жыл бұрын
I got some array issue I don't know why
@safilamer4 жыл бұрын
4:35 rip my ears
@quiveryninja4 жыл бұрын
This was really use full, but how about when enemy has health?
@diliupg2 жыл бұрын
you reduce health each shot and whn it reaches zero do all what the tutorial says
@subzero47874 жыл бұрын
Step 1 failed... It falls through the ground plz help...
@subzero47874 жыл бұрын
I fixed this but now enemies fly in air whenever they die....
@kirbs55993 жыл бұрын
@@subzero4787 how did u fix it
@subzero47873 жыл бұрын
@@kirbs5599 don't change rigidbody and don't disable collider... Just disable animator to turn it into ragdoll...
@mahmood3925 жыл бұрын
how do i activate it when my enemy health hits 0?
@firemind22655 жыл бұрын
that really depends on how you implemented it.
@mahmood3925 жыл бұрын
@@firemind2265thanks, i fixed that problem. But im just not sure how to add the force when my melee weapon collides with my enemy. Like is it the same code you added or do i have to change something?
@firemind22655 жыл бұрын
@@mahmood392 well the "force" is basically just a sphere that expands. So you need to calculate the point where your mele hits the Enemy and then Spawn the sphere there.