A cloth-like effect using WorldPositionOffset
In this recipe we'll go through the steps to generate a wavy surface in the mesh, which could be used for a variety of effects, including swaying objects such as hanging plants, cloth, or magical effects.
How to do it...
Start a new scene, and in the Content Browser, search the provided content for PacktKismet.Mesh.MyWavyMesh and right-click on it; choose Create a Copy... and place this to Yourfolder.Mesh.WaveTest. Right-click this and choose Copy Full Name to Clipboard. It is just a thin BSP box that has had its edges split a few times before being converted to a StaticMesh. A BSP itself wouldn't work because it doesn't respond to the vertex offsets we'll be doing to the converted geometry. Place the asset in the scene, above the ground. Right-click on it and choose Convert | StaticMeshActor to Mover.
In the Content Browser, right-click and choose New Material; name it Yourfolder.Material.Wave_mat and open it up.
In the Material's PreviewMaterial...