Wondering what’s next for npm?Check out our public roadmap! »

voxel-outline

0.4.3 • Public • Published

voxel-outline

Show an outline around the player's currently targeted block (voxel.js plugin)

screenshot

Load with voxel-plugins. Comparable to voxel-highlight except requires voxel-mesher and voxel-shader, uses gl-modules instead of three.js, and has less functionality.

API

Emits events when the raycast voxel target changes (similar to voxel-highlight):

var outlinePlugin = game.plugins.get('voxel-outline');

outlinePlugin.on('highlight', function(pos, info) { /* ... */});
outlinePlugin.on('remove', function(pos) { /* ... */});

For an example of this API usage, see voxel-voila.

License

MIT

Keywords

Install

npm i voxel-outline

DownloadsWeekly Downloads

2

Version

0.4.3

License

MIT

Last publish

Collaborators

  • avatar