Skip to content

Latest commit

 

History

History
 
 

primitives

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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>