Terrain attach is happened in Y direction of unit (place element). That is means no matter what type of placement you are using, they can be attached to terrain.
...
Combining with place type, curve and terrain, you can apply any kind of placement scheme.
Terrain Attachment + Curve Placement
Terrain Attachment + Formation Placement
...