Can't destroy/place blocks
Opened this issue · 2 comments
z3t0 commented
I cannot seem to figure out how to break a block...
deathcap commented
In the http://maxogden.github.io/voxel-engine/ demo you left-click to break blocks, and control-left-click to place blocks. In the ndarray/stackgl branch (#103) this functionality is split out into several distinct plugins (for use with voxel-plugins):
- https://github.com/deathcap/voxel-mine - provides variable-length mining whilst holding down the left mouse button, plus a block break overlay decal
- https://github.com/deathcap/voxel-harvest - adds broken blocks as items to the player's inventory
- https://github.com/deathcap/voxel-reach - low-level plugin to raycast voxels within each and send mining/use events to other plugins
- https://github.com/deathcap/voxel-use - handles right-clicking with blocks (and items) = placement