Skip to content
master
aframe-extras/src/primitives/
aframe-extras/src/primitives/

Latest commit

- Move aframe-physics-system references to jsdelivr.
- Replace rawgit references in readme and remaining examples.
- Replace rawgit references in a-grid and gltf-model-legacy.
a52ac5f

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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>
You can’t perform that action at this time.