Irrlicht and PhysX Ragdoll Demo (finally)

A forum to store posts deemed exceptionally wise and useful
Post Reply
stoneyjonez
Posts: 2
Joined: Sun Aug 02, 2009 8:23 am

Irrlicht and PhysX Ragdoll Demo (finally)

Post by stoneyjonez »

OK, here's the deal: I had been looking EVERYWHERE online to find out how to make a skinned mesh ragdoll. All I could find was how to make a ragdoll out of separate meshes. So I eventually figured it out, and here it is! I couldn't find this ANYWHERE online, especially not with Irrlicht, so I hope it will be helpful to some people. I wasn't sure if I should put this in this category or in Code Snippets, so if I'm wrong please move it or do whatever must be done.

http://www.megaupload.com/?d=5SH2893A

Please excuse the crappy model. It's just a dummy I use to test things.
Also, sorry for the lack of documentation/commenting, I will update in the future.

Note: some of the joints may still need to be tweaked a little, so just mess around with the parameters till you like it!

Hope this helps some people....

EDIT: Updated... new URL
Lil Margin
Posts: 212
Joined: Sun Jul 19, 2009 4:24 am
Location: Netherlands Antilles, Curacao

Post by Lil Margin »

how about making a tutorial for newcomers like me :)
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Post by twilight17 »

You have:

Code: Select all

	NxVec3 normalgrav(0, -9.8f, 0);	// normal earth gravity
	NxVec3 lowgrav(0, -1.0f, 0);		// low gravity (used in this demo)
	NxVec3 nograv(0, 0, 0);			// no gravity at all

	NxSceneDesc scd;
	scd.gravity = nograv;
shouldn't it be:

Code: Select all

	NxVec3 normalgrav(0, -9.8f, 0);	// normal earth gravity
	NxVec3 lowgrav(0, -1.0f, 0);		// low gravity (used in this demo)
	NxVec3 nograv(0, 0, 0);			// no gravity at all

	NxSceneDesc scd;
	scd.gravity = lowgrav;
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
stoneyjonez
Posts: 2
Joined: Sun Aug 02, 2009 8:23 am

Post by stoneyjonez »

No I wanted to keep it at 0 gravity for the demo. I figured it's just one var to change. Otherwise it drops to the floor right away, and you can't shoot him into the wall; It's not perfect, but it's 100x more than I found from googling.
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

very cool stoneyjonez. A great first post. thanks!
Post Reply