Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .metaversefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "sword",
"description": "sword: A melee weapon",
"start_url": "sword.glb",
"components": [
{
Expand All @@ -9,6 +10,22 @@
"position": [0.4, 0.7, -0.2],
"quaternion": [0, 0, 0.9510565162951535, 0.30901699437494745]
}
},
{
"key": "use",
"value": {
"animationCombo": [
"swordSideSlash",
"swordSideSlashStep",
"swordTopDownSlash",
"swordTopDownSlashStep"
],
"behavior": "sword",
"boneAttachment": "leftHand",
"position": [-0.07, -0.03, 0],
"quaternion": [0.7071067811865475, 0, 0, 0.7071067811865476],
"scale": [1, 1, 1]
}
}
]
}
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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"
}
]
}
```
12 changes: 0 additions & 12 deletions manifest.json

This file was deleted.