Spawn on Surface Actor

One of the drag-and-drop tools is called Spawn on Surface actor. By configuring a few simple parameters on this instance, you can generate endless placement variations for anything from trash cans to tricycles, fire hydrants to foliage.

This works by querying the simulation world for surfaces that you specify. Surfaces can be indicated by 1 Surface Name Pattern 2 and/or by Surface Tag (see How To Use Tags below). When your simulation starts, the Spawn on Surface instantiates copies of an Unreal Engine actor randomly selected from an 7 array of Unreal Engine actors you've chosen onto those surfaces in a random pattern at random angles using the 3 density range and the 5 rotation range you provide. If you just want all spawned obstacles to face the same direction, you can select 4 Restrict to One Rotation and Spawn on Surface will automatically update the range's maximum to equal its minimum. To enable physics simulation on your spawned obstacles, just select 6 Add Physics. By default, the Spawn on Surface will remove overlaps, but this behavior can be turned off by unselecting 8 Remove Overlaps. A 9 Random Seed value drives the random placement pattern. Don't like the pattern? Just enter a different random seed to try a new one.

AmbitSpawner annotated UI

Using Spawn on Surface

After adding a Spawn on Surface instance to your map you will see an icon like this. You can place it at any 3D location you'd like. Its placement isn't important.

AmbitSpawner placement

Examples

It's easiest to understand the effect of each of the Spawn on Surface parameters by seeing them in action. You will find a variety of examples in the Spawn on Surface Examples section.