Skip to content
📦 Path component 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/apath
man
pkgdown
.Rbuildignore
.gitignore
DESCRIPTION
LICENSE
LICENSE.md
NAMESPACE
README.md
apath.Rproj
index.rmd

README.md

apath

Path component for aframer

Installation

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

Example

library(aframer)
library(acurve)
library(apath)

embed_aframe(
  a_scene(
    a_dependency(),
    acurve_dependency(),
    apath_dependency(),
    a_curve(
      id = "track1",
      a_curve_point(position = "-2 2 -3"),
      a_curve_point(position = "0 1 -3"),
      a_curve_point(position = "2 2 -3")
    ),
    a_box(
      alongpath = opts_aframe(
        curve = "#track1",
        dur = 5000,
        loop = TRUE
      ), 
      color = "blue"
    )
  )
)
You can’t perform that action at this time.