The x coordinate of the craters center.
The y coordinate of the craters center.
The radius of the crater.
The depth of the crater.
The duration in milliseconds.
Make the deformation permanent.
To approximate the resulting height of a point distance
units away from the
center point (x, y)
you can use the following formula: Cos(bj_PI/2 * distance / radius) * -depth
. See this issue for some more information.
Not every player might display those transformations due to graphics settings. Thus reading data like terrain height might lead to async values. See the other note on a way to compute an appropiate height to use instead.
Permanent terrain deformations are not present in saved game files.
Generated using TypeDoc
Create a crater at the given coordinates.