How do I set rag doll back to default animation pose?

0 favourites
  • 4 posts
From the Asset Store
Simple yet very life-like rag doll made with Physics!
  • Asked this earlier, either got deleted, or I didn't click submit? am I that MR?

    How can I get my rag doll to shift back to his default position gradually, like a comfort zone? NOT snap back, and I can't use set rotation towards angle because his position will be different.

    That make any sense?

  • How are you doing the ragdoll, as in how is it setup? Any answer depends on that.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Just with limited revolution joints. How else would I do it?

  • Ok cool.

    The simplest idea would be to save the initial angles and positions of each part of the ragdoll and rotate and move each piece toward those initials when you want it to reset. You may even be able to get away with only using the initial angle. Here's the idea. You can replace the "every tick" with a condition to reset the ragdoll.

    Start of layout:

    --- sprite: set initialAngle to self.angle

    Every tick:

    --- sprite: rotate 100*dt degrees toward self.initialAngle

    A slightly more deluxe idea would be to save the initial angle difference between each body part and the other part it's connected to. It would probably give a more natural motion I imagine.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)