WorldToCellPreferSolid (Method)

From Legacy Roblox Wiki
Jump to navigationJump to search
WorldToCellPreferSolid( Vector3 position )
Returns Vector3
Description: Returns the grid cell location that contains the point position, preferring non-empty grid cells when position is on a grid edge.
Member of: Terrain



Usage

  • If the point is on the border of two grid cell locations, non-empty grid cells will be given strict preference to empty ones.