https://github.com/johncoene/aphysics
📦 Physics for aframer
https://github.com/johncoene/aphysics
a-frame rstats
Last synced: 11 months ago
JSON representation
📦 Physics for aframer
- Host: GitHub
- URL: https://github.com/johncoene/aphysics
- Owner: JohnCoene
- License: other
- Created: 2018-08-24T08:59:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-09T18:15:51.000Z (over 7 years ago)
- Last Synced: 2025-03-21T20:16:20.458Z (about 1 year ago)
- Topics: a-frame, rstats
- Language: R
- Homepage: https://aphysics.john-coene.com
- Size: 362 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aphysics
Physics for [aframer](https://aframer.john-coene.com)
## Installation
``` r
# install.packages("devtools")
devtools::install_github("JohnCoene/aphysics")
```
## Example
More information on the [website](https://aphysics.john-coene.com)
``` r
library(aframer)
library(aphysics)
browse_aframe(
a_scene(
physics = opts_aframe(debug = TRUE),
a_dependency(cdn = TRUE),
aphysics_dependency(cdn = TRUE),
a_entity(
camera = NA,
`look-controls` = NA
),
a_plane(
`static-body` = NA
),
a_box(
`static-body` = NA,
position = xyz_aframe(0, .5, -5),
width = 3,
height = 1,
depth = 1
),
a_box(
`dynamic-body` = NA,
position = xyz_aframe(5, .5, 0),
width = 1,
height = 1,
depth = 1
)
)
)
```