Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 962 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
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 Offline OP
Expert
Helghast  Offline 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 smile 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 laugh
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,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
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 Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
awesome! smile
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 Offline
Newbie
warkarma  Offline
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. smile

Its a long way for me to code something similar .... frown


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 Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Originally Posted By: warkarma
Did you noticed that every characters left hand goes up and right hand always goes down ?
Overall very nice coding. smile

Its a long way for me to code something similar .... frown


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 smile

good luck wink

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
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 Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
amazing. very well done laugh

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: Germanunkol] #267804
05/26/09 11:06
05/26/09 11:06
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
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).

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 Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Originally Posted By: TechMuc
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:

Quote:
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 wink

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Ragdoll code A7 lite-c! [Re: Helghast] #267857
05/26/09 14:47
05/26/09 14:47
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

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 Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Originally Posted By: the_clown
Very nice contribution, thanx! This will be very helpful!

EDIT: Whoa, it looks impressive with some nice explosions!


Show us the goods laugh
I'd love to see some stuff people made with it! smile

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Ragdoll code A7 lite-c! [Re: Helghast] #269046
06/01/09 13:17
06/01/09 13:17
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
I would, but there is nothing to see but the flying dolls... I coded some explosions, but without the actual effect, you know.
Thanx to darkinferno, who showed me how to code correct physics explosions...

Page 1 of 3 1 2 3

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1