World.getVoxelMaterialFromWorldPosition

Kind: Function

Environments: Game

Game

world:getVoxelMaterialFromWorldPosition( worldPosition )

Open the full Game reference

Parameters:

Name Type Description
world World The world to look in.
worldPosition Vec3 The position of the voxel chunk in the world.

Returns:

Type Description
integer The material index value. (returns nil if no voxel was at point)
integer The density value. (returns nil if no voxel was at point)