How do I setup shadows for animated meshes?
I am trying to import a skeletal mesh with animations into my scene. The animation consists of a pair of feet walking back and forth. When I place the animation in the scene and simulate the scene, as the feet get further away from the initial position (this happens as the animation plays, I am not translating the feet) then the shadow disappears. However when I playback the animation in Persona there's a shadow even when the feet move far away from the initial position which is what I want to happen in my scene too. I am using the third person game template for this and I haven't modified the lighting or the ground except a texture for the ground. What could I do to fix this ?
Many thanks !
The solution to this problem ( many thanks to Mehmet Guven for the tip ) is to create a physics asset while importing the FBX file. I was earlier unchecking the creating of physics asset during importing it and it was causing this artifact.
The most game-engine friendly way to set up animations is to
this will fix your shadow issue
and many other potential future issues
Yes there might be a simple fix for your immediate issue
but in the long run you should consider avoiding root motion
root motion might very well be not be fully developed to work in UE4 yet ( I dont know)
but even if it does work
root motion is always complicated.
you have no need of such complexity
consider redesigning the animation and moving the actor yourself via unreal engine :)
Follow this question
Once you sign in you will be able to subscribe for any updates here