aphysics 0.0.0.9000
  • Reference

aphysics

Physics for aframer

Installation

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

Example

library(aframer)
library(aphysics)

embed_aframe(
  a_scene(
    physics = opts_aframe(debug = TRUE),
    a_dependency(),
    aphysics_dependency(),
    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
    )
  )
)

Links

  • Report a bug at
    NA

License

  • Full license
  • MIT + file LICENSE

Developers

  • John Coene
    Author, maintainer

Developed by John Coene.

Site built with pkgdown.