|
Ragdoll code A7 lite-c!
#267646
05/25/09 17:19
05/25/09 17:19
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
OP
Expert
|
OP
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
Hello lovely people! Once again I continued developing my [unlimited] ragdoll code (it's really an ongoing side-project that just cant loose my grip :P). This time, i made the code as optimised as possible (it's ~250 lines of code :D), however, optimised here means code reusability  I havent added in any physics removal or bone update limiter in... yet! And again, this time, it does work with updating bones to physics objects! WOOOOT credits for that goto: darkinferno, for tipping me where to find the code.XD1v0, for making the update code!Right, now we got that over with, I present screenshots, a demo and the sourcecode! DEMO: Ragdoll Demo v3.0 (A7 code) - 2.06MB SOURCE: Ragdoll Demo v3.0 (A7 code) - 114KB EDIT CONTROLS; left mouse click = spawn ragdoll spacebar = add force to ragdoll(s) /EDIT I hope to see some cool projects with this  again, credits are nice, but if you do, also credit the people that made this possible (see credits above). If you love me so much you want to make a paypal donation, PM me :P hahahaa everybody, enjoy! regards,
|
|
|
Re: Ragdoll code A7 lite-c!
[Re: Helghast]
#267647
05/25/09 17:25
05/25/09 17:25
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
awesome!  we'll use this for sure, thnx
Ubi bene, ibi Patria.
|
|
|
Re: Ragdoll code A7 lite-c!
[Re: Helghast]
#267648
05/25/09 17:29
05/25/09 17:29
|
Joined: Mar 2009
Posts: 17
warkarma
Newbie
|
Newbie
Joined: Mar 2009
Posts: 17
|
Did you noticed that every characters left hand goes up and right hand always goes down ? Overall very nice coding. Its a long way for me to code something similar .... 
Trust NoOne (only me =]) _________________________
|
|
|
Re: Ragdoll code A7 lite-c!
[Re: warkarma]
#267649
05/25/09 17:33
05/25/09 17:33
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
OP
Expert
|
OP
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
Did you noticed that every characters left hand goes up and right hand always goes down ? Overall very nice coding. Its a long way for me to code something similar .... yes, yes I did XD it's just a setup thingy that went wrong :P you can change that yourself by editing the setBoneLimit function  good luck  regards,
|
|
|
Re: Ragdoll code A7 lite-c!
[Re: Helghast]
#267797
05/26/09 10:14
05/26/09 10:14
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
amazing. very well done  What always bugs me about ragdolls is that they don't seem to lie entirely still, they keep on moving a little... that's not to bad in this demo though, nice coding!
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: Ragdoll code A7 lite-c!
[Re: TechMuc]
#267807
05/26/09 11:23
05/26/09 11:23
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
OP
Expert
|
OP
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
very nice, thank you.
I think a very important feature would be to automatically switch ragdoll of, if it's not longer needed (for performance issues). E.g. activate it while falling, deactivate it while lying. That would also stop this slight "shaking" on the ground (even without any force as germanunkol mentioned). Let me quote myself: optimised here means code reusability smile I havent added in any physics removal or bone update limiter in... yet! hehehee, it's true, i had that planned, as have it planned that bones rotations dont update every frame (as that's pretty heavy on CPU... XD). thanks for the comments, keep them going  regards,
|
|
|
Re: Ragdoll code A7 lite-c!
[Re: Helghast]
#267857
05/26/09 14:47
05/26/09 14:47
|
Joined: Nov 2008
Posts: 946
the_clown
User
|
User
Joined: Nov 2008
Posts: 946
|
Very nice contribution, thanx! This will be very helpful!
EDIT: Whoa, it looks impressive with some nice explosions!
Last edited by the_clown; 05/27/09 15:28.
|
|
|
Re: Ragdoll code A7 lite-c!
[Re: the_clown]
#268808
05/31/09 08:44
05/31/09 08:44
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
OP
Expert
|
OP
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
Very nice contribution, thanx! This will be very helpful!
EDIT: Whoa, it looks impressive with some nice explosions! Show us the goods  I'd love to see some stuff people made with it!  regards,
|
|
|
|