Waking up bodies of physic asset + skeletal mesh attached to socket
Well, I'm having positioning problems with some skeletalmeshes attached to the skeletal mesh of the character. I'm going to provide a video to clarify problem. https://www.youtube.com/watch?v=N7nQKh2NFoM&feature=youtu.be The character study case has those peculiarities.:
The problem is more noticeable when the frame rate decreases a big amount. To force that situation I'm just focusing another application different than the editor. From the second 24 to 38 the framerate decreases. As can be seen, both the hair and the weapons begins to suffer a bad positionning. This shouldn't be happenneing even with a low framerate.
To wake up the physic bodies, I'm just calling the BP method SetAllBodiesBelowSimulatePhysics giving the name of the hierarchy bones parent wich are going to be influenced by the physicbody of the physic. After that, I call SetAllBodiesBelowPhysicsBlendWeight giving the same bone name as before,and setting a value for PhysicsBlendWeight parameter to 1. Just to give the physics all weight over the animation.
The cloth is working perfectly even with a wind/fun set. But the attached skeletal meshes are not working as expected. This problem raises the physic bodies begin to simulate. If I set in SetAllBodiesBelowPhysicsBlendWeight a value of 0 (no physic simulation for physic bodies), the skeletal meshes attached works perfectly, even with a low framerate.
So, any ideas about what is hapenning?.
Thanks in advance, Juan
asked Dec 16 '15 at 11:16 AM in Using UE4
It was an engine bug described and fixed here for UE 4.8 version: https://answers.unrealengine.com/questions/248359/physics-jitter-when-attaching-a-static-mesh-to-a-r.html
answered Jun 20 '17 at 03:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here