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"

Physical animation casues skeletal mesh to rotate to wierd angles

So i am trying to make a physics based melee game. I've ran into a problem with the physical animation. It appears that it is trying to rotate the mesh to a specific angle around one axis. This angle chages depending of the rotation of the mesh on another axis. Im posing videos of the problem below, ive turned the gravity off for easier demonstration. (Sorry for the unnecessary soundtracks, diddn't know i recorded audio)

https://www.youtube.com/watch?v=w0eoP64vxPo&feature=youtu.be

On this next one ive turned off physical animation, you can now see the UE guy dance freely to his target rotation.

https://www.youtube.com/watch?v=dYUfVKM8Z7I&feature=youtu.be

Do anyone know what causes this? and how to fix it? Any help would be appreciated.

Product Version: UE 4.19
Tags:
more ▼

asked Sep 19 '18 at 11:23 AM in Blueprint Scripting

avatar image

HanFukinYolo
1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I think I found the reason for it. You should not apply Physical Animation to pelvis (or any bone that has no physical body as a parent). This makes Physical Animation try to reach the target orientation for pelvis in world-space rather than in local-space (relative to parent). I guess that's because the parent is the world in that case.

I simply zeroed strength for pelvis bone in the Physical Animation Profile and it works fine now.

Edit: Well, it works for some cases - where orientation strength is low. Seems that Physical-Anim-Component is not fit for applying larger forces as it adds energy to the system which then becomes unstable (weird twisting etc). It's because normally active ragdoll would use joints/motors between existing ragdoll bodies to reach target local rotation. There would be no problem then. I looked into the code and Physical-Anim-Component uses joints to non-existing kinematic actors (clones of our limbs) to achieve movement/rotation of ragdoll limbs. Those kinematic actors are moved where animation directs them and they "drag" real physical bodies with them. This is very non-physical in terms of how real world works and can result in very unstable simulation. It's like there is a magical force that moves your body around and not your muscles doing it.

more ▼

answered May 02 '19 at 11:06 AM

avatar image

DanielKrakowiak
1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

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

Answers to this question