x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Closed] How to Play Animation On specific Bone Which is break from skeletal mesh?

I can break bone by calling BreakConstraint + SimulatePhysical But How can I play animation on the bone which is break from skeletal mesh..!!?

Product Version: Not Selected
Tags:
more ▼

asked May 24 '17 at 06:42 PM in Using UE4

avatar image

Answers.Archive STAFF
1.9k 197 306 677

avatar image Answers.Archive STAFF May 24 '17 at 06:42 PM

Hi Chen,

Apologies for the delay. I could have sworn that I replied here.

As far as I know, there isn't a way to do that out of the box. That "limb" that you detach is still being controlled by the AnimBP for the character. The only way that I can think is to do a layered blend per bone in your AnimBP, but that hardly seems like a viable solution.

What is the end result that you're looking for? Perhaps there is a better way to do it than "Break Constraint"

-Matt W.

avatar image Answers.Archive STAFF May 24 '17 at 06:42 PM

Thank for your reply~! I try to use layered blend on limb and body. But It look like so strange...!!

alt text

I need to predict the direction of the fall. So I can play suitable for animation. And I alse need to use IK avoid bones penetrating the ground

rrrr.jpg (82.2 kB)
avatar image Answers.Archive STAFF May 24 '17 at 06:42 PM

Hey Chen,

It may be better to go the route of creating multiple skeletal meshes of different body parts(what used to be called a "gore mesh") and detaching them based on hit location. (There is a pretty good tutorial series on this)

Can you tell me exactly what you want to happen? I need to know the general idea before moving forward. I can only assume that you want to detach the leg and have them fall over. That is different than my initial thinking on this, so we need to get on the same page.

-Matt W.

avatar image Answers.Archive STAFF May 24 '17 at 06:42 PM

I look forward to When I detach leg, character falls down naturally. Then character can crawl on the ground and leg is still pumping~! I hope that it's not too much demand ~XD

(comments are locked)
10|2000 characters needed characters left

The question has been closed May 24 '17 at 06:45 PM by Matt.Williams for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

Yes, you can try Physical Animation to apply keyframe animation onto a physical simulation regardless the constrains were broken or not. The PhysicalAnimation applies Physical Animation Data which was applied to the physical assets to give the strength how difficult/easy the physical simulation could affect the keyframe animation.

With PhysicalAnimation working the mesh/bones need to be always simulating physics that will prevent the mesh penetrating ground while playing keyframe animations

But things becomes complicated if you also want your character has proper looking crawl animation playing after falling down. I think the challenge becomes how to natually blend an arbitrary pose to a Crawling animation. You might need to rotate the Pelvis bone to a proper orientation first to better match the upcoming crawling animation. Also you might need to prevent the character penetrating into a bumppness ground while crawling, so PhysicalAnimation is also a good way to go

Here's a simplest BP and Video example shows the pumping leg 3 seconds after the guy falling down.

alt text

link text

phyanimbp.png (156.6 kB)
phyanim.zip (2.3 MB)
more ▼

answered May 24 '17 at 06:42 PM

avatar image

Answers.Archive STAFF
1.9k 197 306 677

avatar image Answers.Archive STAFF May 24 '17 at 06:42 PM

Thank for your reply and example. I try this BP to test. It success that pumping leg. But the body twists slightly. Something can I do to avoid body to twist?

avatar image Answers.Archive STAFF May 24 '17 at 06:42 PM

I guess that's because of bit "unstable" simulation between the rigid bodies? You might need to increase the simulation parameters, tweak the constrains to get more stable simulation or disable the bodies collisions in betweens where get undesired twisting.

(comments are locked)
10|2000 characters needed characters left

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question