playMaker

Author Topic: Return ragdoll to character controller at proper position  (Read 3882 times)

MABManZ

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 125
    • MABManZ.com
Return ragdoll to character controller at proper position
« on: March 13, 2012, 09:02:37 PM »
I've been wrestling with this for weeks now, figured maybe it's time I asked for help   :-\

I currently have a good ragdoll setup for some enemy characters, but I'm having trouble having them stand back up at the correct position after falling.

The character controller does not follow the ragdoll after it activates, but I but I made it lock onto the pelvis position by unparenting the ragdoll from the character controller and then using the "move toward" action to line up with the pelvis position.

However, when control is given back to the character controller, the model will displace itself into some unorthodox position. The character controller is no longer centered on the GameObject for some reason.


Can anyone give me a proper flow of transitioning from a ragdoll back to character controller smoothly? (btw the Capture Pose action works wonderfully)


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4145
  • Official Playmaker Support
    • LinkedIn
Re: Return ragdoll to character controller at proper position
« Reply #1 on: March 14, 2012, 12:52:23 AM »
It would be great to have a test project to play with...  :)

If you send me a small test scene with a simple way to turn the ragdoll on/off, I'll take a look at it...

Cheers,
Alex

MABManZ

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 125
    • MABManZ.com
Re: Return ragdoll to character controller at proper position
« Reply #2 on: March 19, 2012, 09:10:44 PM »
Sorry, I've been kinda out of it for the last week.

I'll upload the project and send a PM soon

artician

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 318
Re: Return ragdoll to character controller at proper position
« Reply #3 on: May 30, 2012, 06:57:57 PM »
I would be interested in your experiences with this, as I'm doing the same thing right now.

I am using the URG! toolkit from the Asset store though.  I do know they have several classes that make it quite easy to switch between ragdoll and a kinematic game object, though that's precisely where I am stuck as well.

I'd provide a scene myself, but since I'm using a paid plugin I don't know if it would be much help unless you have it as well.

EDIT: I forgot to mention - the reason I took interest in your post was because I'm having the same experience with the ragdoll "displacing itself into an unorthodox position". 
« Last Edit: May 30, 2012, 10:07:04 PM by artician »