altspace

altspace/components. altspace

The altspace component makes A-Frame apps compatible with AltspaceVR.

Note: This component can have side-effects on some default components. To be safe, this component should be specified last.

Example
<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script>
  <script src="https://cdn.rawgit.com/AltspaceVR/AltspaceSDK/v2.9.0/dist/altspace.min.js"></script>
</head>
<body>
  <a-scene altspace>
    <a-entity geometry="primitive: box" material="color: #C03546"></a-entity>
  </a-scene>
</body>

Extends

Members

enclosuresOnly :boolean

Prevents the scene from being created if enclosure is flat.

Default Value:
  • true

fullspace :boolean

Puts the app into fullspace mode.

Default Value:
  • false

usePixelScale :boolean

Allows you to use A-Frame units as CSS pixels. This is the default behavior for three.js apps, but not for A-Frame apps.

Default Value:
  • false

verticalAlign :string

Puts the origin at the bottom, middle (default), or top of the Altspace enclosure.

Default Value:
  • "middle"