Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 748 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 748 Bytes

sword

Swords are items that you can wield to do damage on objects and NPCs in the world.

.metaversefile Wearable

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

{
  "name": "saber",
  "description": "Saber XRPackage",
  "start_url": "index.js",
  "components": [
    {
      "type": "use",
      "subtype": "swing",
      "useAnimation": "slash"
    }
  ]
}