PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

FillWedge

FillWedge fills a wedge-shaped volume of Terrain with the given enum/Material and the area’s CFrame and Size. The orientation of the wedge is the same as an equivalent WedgePart.

The results of a call to Terrain:FillWedge with CFrame (0, 50, 0), Size (20, 20, 20), and Material Asphalt

In the image above, a floating chunk of Terrain was created by calling this function as in the following code. A transparent, pink part with the Front surface marked with a Motor indicates the provided CFrame and Size.

workspace.Terrain:FillWedge(CFrame.new(0, 50, 0), Vector3.new(20, 20, 20), Enum.Material.Asphalt)

Parameters

Name Type Default Description

The position and orientation of the wedge to fill

The size of the wedge to fill

The material with which the wedge will be filled

Returns

Return Type Summary