xrsh-com/README.md

28 lines
779 B
Markdown
Raw Normal View History

2023-11-11 12:54:24 +01:00
# XRshell apps & components
2023-11-01 12:53:18 +01:00
2023-11-03 11:01:57 +01:00
<img src='https://github.com/coderofsalvation/xrshell/raw/main/src/assets/logo.svg' width="25%"/>
2023-11-01 12:53:18 +01:00
2023-11-03 10:59:41 +01:00
This is a library of useful AFRAME components which can be used in any AFRAME app, but also are exposed as 'apps' in [xrshell](https://github.com/coderofsalvation/xrshell):
2023-11-01 12:53:18 +01:00
# Usage
```html
2023-11-03 10:59:41 +01:00
<script src="https://coderofsalvation.github.io/xrshell-apps/helloworld.js"/>
2023-11-01 12:56:54 +01:00
2023-11-01 12:53:18 +01:00
<a-entity helloworld="foo:1" class="cubes" name="box">
```
2023-11-03 10:59:41 +01:00
In [xrshell](https://github.com/coderofsalvation/xrshell) these components can be applied to entities using controllers/gestures, or via a xrshell terminal:
2023-11-01 12:53:18 +01:00
```bash
$ open foo.gltf
scene/box
scene/pyramid
$ component helloworld
> enter value for foo: 1
$ export --html > scene.html
$ export --gltf > scene.gltf
```