Skip to content
📦 Physics for aframer
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
docs
inst/aphysics
man
pkgdown
.Rbuildignore
.gitignore
DESCRIPTION
LICENSE
LICENSE.md
NAMESPACE
README.md
aphysics.Rproj
index.Rmd

README.md

aphysics

Physics for aframer

Installation

# install.packages("devtools")
devtools::install_github("JohnCoene/aphysics")

Example

More information on the website

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
    )
  )
)
You can’t perform that action at this time.