Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
a-grid.js
a-hexgrid.js
a-ocean.js
a-tube.js
index.js

README.md

Primitives

Reusable entities / primitives.

  • <a-grid/>: Flat grid, with subdivisions at regular intervals.
  • <a-hexmap/>: Hexagon map loaded from a JSON file, using von-grid.
  • <a-ocean/>: Ocean with animated waves.
  • <a-tube/>: Tube following a custom path.

Usage

Basic:

<a-grid></a-grid>

<a-ocean></a-ocean>

<a-tube path="5 0 5, 5 0 -5, -5 0 -5" radius="0.5" material="color: red"></a-tube>

<!-- Generate a hexmap here: http://vonwolfehaus.github.io/von-grid/editor/ -->
<a-hexgrid src="hexmap.json"
           material="color: #47BF92"></a-hexgrid>

Custom:

<a-grid src="custom-image.png"></a-grid>
<a-ocean color="#92E2E2" width="25" depth="25" density="15" speed="2"></a-ocean>