World.isVoxelTerrainPointClear

Tests if a world position is free from voxel terrain coverage.

Kind: Function

Environments: Game

Game

world:isVoxelTerrainPointClear( referencePosition, testPosition )

Open the full Game reference

Parameters:

Name Type Description
world World The world.
referencePosition Vec3 The reference position (e.g. character position).
testPosition Vec3 The position to test for voxel coverage (e.g. shape center).

Returns:

Type Description
bool True if the position is clear of voxel terrain, false if covered.