Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bryik/aframe-ball-throw
A basic A-Frame demo with physics and Vive controller support.
https://github.com/bryik/aframe-ball-throw
aframe physics vive
Last synced: 2 days ago
JSON representation
A basic A-Frame demo with physics and Vive controller support.
- Host: GitHub
- URL: https://github.com/bryik/aframe-ball-throw
- Owner: bryik
- License: mit
- Created: 2016-08-05T18:59:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T09:43:10.000Z (almost 2 years ago)
- Last Synced: 2024-11-19T01:18:16.188Z (2 months ago)
- Topics: aframe, physics, vive
- Language: HTML
- Homepage: https://bryik.github.io/aframe-ball-throw/index.html
- Size: 1.17 MB
- Stars: 27
- Watchers: 2
- Forks: 16
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A-Frame Ball Throw
Playable with **HTC Vive**.
This repository contains a small demonstration of A-Frame with vive controllers and physics powered by [A-Frame Extras](https://github.com/donmccurdy/aframe-extras) and [A-Frame Physics System](https://github.com/donmccurdy/aframe-physics-system). Grab a ball and chuck it at the stack of boxes!
### Expansion and Experimentation
Try forking this component and messing around with it. For instance,
Change the force of gravity from 1.6 m/s^2 (similar to the Moon), to 9.8 m/s^2 (similar to the Earth).
```html
```### Running locally
```bash
npm start
```Open the URL `https://192.168.1.11:3000/` in Firefox and bypass the scary "certificate invalid" warning. WebVR seems to require `https` and achieving this on localhost involves generating a certificate (one that the browser won't automatically trust).
### Troubleshooting
#### The height is off
As of July 2020, I think Firefox computes height offset based on the headset's position at the time "Enter VR" is pressed. So if you enter VR with the headset on the floor, you'll be either too tall or too short. It seems to work better if you press "Enter VR" while wearing the headset.