Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avaer/sword
https://github.com/avaer/sword
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/avaer/sword
- Owner: avaer
- Created: 2021-01-26T00:52:59.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-20T00:24:43.000Z (over 1 year ago)
- Last Synced: 2024-10-08T19:22:21.809Z (3 months ago)
- Size: 2.26 MB
- Stars: 1
- Watchers: 2
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sword
Swords are items that you can wield to do damage on objects and NPCs in the world.
## `.metaversefile` Wearable
![](https://i.imgur.com/f1cjF55.png)
![](https://i.imgur.com/0sJXsd2.png)
The `.metaversefile` goes in the directory with the GLB file in order to create the XRpackage.
```
{
"name": "sword",
"description": "Sword XRPackage",
"start_url": "sword.glb",
"components": [
{
"type": "wear",
"position": [0, 0, 0]
}
]
}
```## `.metaversefile` Wield
![](https://i.imgur.com/SaXNpC6.png)
```
{
"name": "saber",
"description": "Saber XRPackage",
"start_url": "index.js",
"components": [
{
"type": "use",
"subtype": "swing",
"useAnimation": "slash"
}
]
}
```