Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aframe-desktop-xr-plane

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aframe-desktop-xr-plane

Simulation of XR Planes on Desktop, for A-Frame

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Overview

A component to simulate WebXR XRPlanes, while running on a desktop system

Schema

This component has no schema. Simulated planes are configured via the plane geometry configured on the same element.

Usage

Configure an a-plane (or other element with a plane geometry) with the desired position, size, rotation and appearance (can be invisible if desired)

Then add the desktop-xr-planecomponent

<a-plane width="2"
         height="2"
         position="1 1 0"
         rotation="0 -90 0"
         color="white"
         wireframe="true"
         desktop-xr-plane>
</a-plane>

Limitations

Does not support the scale attribute on the element - scale is assumed to be 1 1 1

Only supports rectangles. The WebXR standard supports XRPlanes that are arbitrary polygons, so this is a limitation vs. the WebXR standard. However note that as of July 2023, the Meta Quest room setup process always generates rectangles (even for the ceiling and floor of a non-rectangular room). So it's possible to simulate all XRPlanes that can be generated by Meta Quest room setup.

Installation

Via CDN

<script src="https://cdn.jsdelivr.net/npm/aframe-desktop-xr-plane@0.0.1/index.min.js"></script>

Or via npm

npm install aframe-desktop-xr-plane

Examples

This component is used in tests for the xr-room-physics component, for example:

ammo-desktop-room5.html

Code

desktop-xr--plane

Keywords

FAQs

Package last updated on 11 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc