Summary

public float WorldSafeHalfExtent()

Returns shortest distance (i.e. axis-aligned) to the world border from the world center, minus 600m to make spawning somewhat safer. Will be 0 if world is borderless

Returns

float