Enemy Ragdoll Death - Unity Tutorial

  Рет қаралды 32,624

Firemind

Firemind

Күн бұрын

Пікірлер: 79
@Acoyo
@Acoyo 5 жыл бұрын
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-dev8607
@andreranulfo-dev8607 5 жыл бұрын
The only tutorial that really teaches how to do it!
@humanwelcomemat9532
@humanwelcomemat9532 4 жыл бұрын
true
@DatmanMason
@DatmanMason 4 жыл бұрын
All in under 10 mins this was perfect thank you
@lildgamedev6885
@lildgamedev6885 3 жыл бұрын
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
@ColtPtrHun
@ColtPtrHun 4 жыл бұрын
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
@MrFarkasOfficial
@MrFarkasOfficial 4 жыл бұрын
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!
@elitefusionz02
@elitefusionz02 4 жыл бұрын
i started in 2017 im still a noob lmao dont feel bad im right here with you
@Peter-rq1qz
@Peter-rq1qz 5 жыл бұрын
Exactly what I was looking for, thanks!
@firemind2265
@firemind2265 5 жыл бұрын
happy to hear :)
@glur8347
@glur8347 3 жыл бұрын
THX BRO IVE SPENT HOURS LOOKING FOR SOMETHING LIKE THIS u got a new sub :)
@chiperchiper1782
@chiperchiper1782 2 жыл бұрын
thanks man really nice video!
@0aleolijest678
@0aleolijest678 3 жыл бұрын
Finally, I found what I was looking for!
@Carteeeer52
@Carteeeer52 2 жыл бұрын
Awesome tutorial bro!
@GreekRussian367
@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_tv5820
@nsb_tv5820 2 жыл бұрын
very very good thank you
@hamzehalshishani5053
@hamzehalshishani5053 4 жыл бұрын
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!!
@ianstancliffe9876
@ianstancliffe9876 4 жыл бұрын
Thanks! Mine doesn’t use a gun, it uses a knife, but this is still very useful.
@samgillespie2324
@samgillespie2324 4 жыл бұрын
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...
@thesauceindustry4423
@thesauceindustry4423 4 жыл бұрын
thanks man its a good tutorial, i had to go back ALOT of times though because you're talking at the speed of light
@firemind2265
@firemind2265 4 жыл бұрын
Happy I could help :) You can put the video in slowmo mode if you have trouble following along.
@satobi46
@satobi46 2 жыл бұрын
Thanks, this works good!
@dmudda90
@dmudda90 5 жыл бұрын
hey where is the not linked linked video you talked about at 1:17? :D Much thanks for this Tutorial!
@firemind2265
@firemind2265 5 жыл бұрын
Sorry mate, guess I forgot to link it. Here is the tutorial that I was talking about: kzbin.info/www/bejne/j52cfpuepKeefLc
@dmudda90
@dmudda90 5 жыл бұрын
@@firemind2265 Awesome, thank you!
@nikolaradovic928
@nikolaradovic928 2 жыл бұрын
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.
@ivangamer8022
@ivangamer8022 5 жыл бұрын
Bro, awesome tut. Have a nice day
@stonerbone
@stonerbone 4 жыл бұрын
thank you for the video, only tutorial i could find on this ps, this is really fun with a shotgun and lots of knockback :))
@robstan3378
@robstan3378 4 жыл бұрын
I 've lot of enemy model prefab, how can I ragdolled all ? Do you have any idea of it?
@lewaplay
@lewaplay 3 жыл бұрын
Is that object will able to use gravity?
@humanwelcomemat9532
@humanwelcomemat9532 4 жыл бұрын
Great tutorial!
@luaykashef
@luaykashef 3 жыл бұрын
how did you make the ragdoll follow you
@necrodogmtsands4s725
@necrodogmtsands4s725 4 жыл бұрын
Hello Firemind. Could you do a tutorial where the player can drag the ragdoll after killing? Thanks. n_n
@JJsHowToChannel
@JJsHowToChannel 2 жыл бұрын
could i just use the get component function to turn off the animator then the ragdoll will turn on.
@elitefusionz02
@elitefusionz02 4 жыл бұрын
im trying to make a zombie that enters ragdoll when its health reaches
@elitefusionz02
@elitefusionz02 4 жыл бұрын
never mind i was able to mess with the script and get it to work
@marianofxg
@marianofxg 4 жыл бұрын
@@elitefusionz02 How?
@elitefusionz02
@elitefusionz02 4 жыл бұрын
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
@humanwelcomemat9532
@humanwelcomemat9532 4 жыл бұрын
heres how i did it public void takeDamage(float amount) { health -= amount; if (health
@samgillespie2324
@samgillespie2324 4 жыл бұрын
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.
@presleyknox9884
@presleyknox9884 2 жыл бұрын
what is your gun script ???
@sourabhvijay5925
@sourabhvijay5925 4 жыл бұрын
can you make a tutorial on fps shooting mechanism like dead target zombie for mobile ?
@sirplayalot1020
@sirplayalot1020 3 жыл бұрын
Is it possible to have it come back alive?
@gvls7164
@gvls7164 4 жыл бұрын
Hi , how can i make it so as the explosion will not affect my character that has rigidbody too??
@sealclips7236
@sealclips7236 3 жыл бұрын
This is a step up from enabling and disabling two gameobjects!
@PremiumGameRider
@PremiumGameRider 4 жыл бұрын
Thanks bro, you really helped me:))
@MikalaiDzik
@MikalaiDzik 5 жыл бұрын
Thanks a lot!
@ari3.08
@ari3.08 3 жыл бұрын
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_4003
@yloh_4003 3 жыл бұрын
help me when my enemy is a rag dol it fal true the ground what to do
@safilamer
@safilamer 4 жыл бұрын
thank you so so much
@beuto
@beuto 3 жыл бұрын
Thank you !!!!!!!!!!!!!
@LION303200
@LION303200 4 жыл бұрын
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 >< !!
@skintubby5566
@skintubby5566 4 жыл бұрын
my enemy does not ragdoll pls help
@noreasonchannel4012
@noreasonchannel4012 5 жыл бұрын
Damn, just Damn.
@madhavvats2605
@madhavvats2605 5 жыл бұрын
Can it works in cover+shooting system asset in unity plz tell me
@kazrepair7219
@kazrepair7219 4 жыл бұрын
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
@jaggers3061
@jaggers3061 4 жыл бұрын
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
@arish7231
@arish7231 5 жыл бұрын
Nice and easy
@loftop1875
@loftop1875 4 жыл бұрын
My ragdoll is just flying away to the sky lmao fix ? FIXED But my ragdoll deosnt working it's working like anti ragdoll
@erikuploads3786
@erikuploads3786 3 жыл бұрын
can you stop writing the code in hyperspeed
@johnathon5727
@johnathon5727 4 жыл бұрын
probly something to do with my enemy AI script but the body follows me after the ragdoll lol.
@XRDeveloper-01
@XRDeveloper-01 4 жыл бұрын
I got some array issue I don't know why
@safilamer
@safilamer 4 жыл бұрын
4:35 rip my ears
@quiveryninja
@quiveryninja 4 жыл бұрын
This was really use full, but how about when enemy has health?
@diliupg
@diliupg 2 жыл бұрын
you reduce health each shot and whn it reaches zero do all what the tutorial says
@subzero4787
@subzero4787 4 жыл бұрын
Step 1 failed... It falls through the ground plz help...
@subzero4787
@subzero4787 4 жыл бұрын
I fixed this but now enemies fly in air whenever they die....
@kirbs5599
@kirbs5599 3 жыл бұрын
@@subzero4787 how did u fix it
@subzero4787
@subzero4787 3 жыл бұрын
@@kirbs5599 don't change rigidbody and don't disable collider... Just disable animator to turn it into ragdoll...
@mahmood392
@mahmood392 5 жыл бұрын
how do i activate it when my enemy health hits 0?
@firemind2265
@firemind2265 5 жыл бұрын
that really depends on how you implemented it.
@mahmood392
@mahmood392 5 жыл бұрын
@@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?
@firemind2265
@firemind2265 5 жыл бұрын
@@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.
@brycezee2335
@brycezee2335 5 жыл бұрын
mines going through the ground :(
@brycezee2335
@brycezee2335 5 жыл бұрын
nvm i fixed
@andreranulfo-dev8607
@andreranulfo-dev8607 5 жыл бұрын
@@brycezee2335 Mine too... What did you do?
@AbdulRehman-cn6zw
@AbdulRehman-cn6zw 5 жыл бұрын
just off your animator
@orangemastergames3247
@orangemastergames3247 4 жыл бұрын
Like +
RAGDOLL PHYSICS in Unity!
17:59
Brackeys
Рет қаралды 510 М.
Better Coding in Unity With Just a Few Lines of Code
15:27
Firemind
Рет қаралды 315 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 6 МЛН
HELP!!!
00:46
Natan por Aí
Рет қаралды 64 МЛН
How to make the Enemy Attack - Unity Tutorial
13:20
Firemind
Рет қаралды 31 М.
How to spawn Enemies - Unity Tutorial
6:57
Firemind
Рет қаралды 19 М.
I Used Godot For 100 Hours, Here’s What I Learned
35:09
LazyAlarm
Рет қаралды 1,2 МЛН
Unity Tutorial: How to trigger a ragdoll on impact using C#
15:46
The Making of Karlson 2D (Game)
11:41
Dani
Рет қаралды 6 МЛН
How the Buckshot Roulette Dealer AI works (and how you can use it to win)
24:18
How to Make A Randomly Walking A.I. in Unity
11:11
The Game Dev Cave
Рет қаралды 21 М.
Simple 2D Enemy Patrolling Unity tutorial
9:34
MoreBBlakeyyy
Рет қаралды 60 М.
Why is video game topology so WEIRD? (Read pinned comment)
5:59
Magic Cyborg
Рет қаралды 60 М.