Hi, My next unreal level in unreal is going to be a forested canyon and I was wondering how I might go about animating the trees swaying in the wind. Are there any tutorials about adding animations to static meshes knocking around as I cant seem to find any. In the past I have animated branches with a panning texture but I want something slightly more realistic. I won't be animating them myself, a friend at work is going to be doing them in Max.
Any ideas?
Thanks, Nick
Replies
Out.position = In.position;
if(In.texCoord.y < 0.9) {
Out.position.x += sin(Out.position.x * frequency + (time/TimeScale)) * amplitude* 1-In.texCoord.y;
}
Look into UE3 documentation for the correct syntax,this one is copied from virtools.