So I have a character with an weapon equipped, an static mesh attached to a socket.
When I play an anim montage, in this case an attack, the staff only moves with the socket if you’re currently walking when you play the anim montage.
If you’re standing still only the skeletal mesh/character plays the animation and the staff floats in place, not reconnecting to the socket until the anim montage is done playing, and it goes to the position the hand is in, in the idle animation.
Have tried spawning the static mesh and attaching it in blueprints, in the construction script and in the event graph to see if it would make a difference, and it doesn’t, nor does adding it to the character blueprint as a component.
They’re not blended at all yet. I wanted to solve this problem first. Right now when you play the anim montage for the attack the blend space for walking just stops playing, and you slide (As if you were doing the anim stationary). The static mesh/weapon just only stays attached to the hand if you play the anim montage while moving, other wise if you do it while actually standing still it’ll float in space before reattaching when the anim finishes playing.
Just fixed this issue.
Tracked it down to a change from UE4.18 to UE4.19/20 in USceneComponent::UpdateChildTransforms().
Caused when you have a skeletal mesh with a child skeletal mesh that is not attached to a socket and set to use it as its master pose component. The child/slave skeletal mesh will update its animation, but not its children.
I just added a socket to the elephant and then attached the tusk to the socket and it is working now. Before you did not have to add the tusk to a socket you could just attached them on the component section of the BP.