Skip to content
📦 Curve 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/acurve
man
pkgdown
.Rbuildignore
.gitignore
DESCRIPTION
LICENSE
LICENSE.md
NAMESPACE
README.md
acurve.Rproj
index.Rmd

README.md

acurve

Curve component for aframer

Installation

devtools::install_github("JohnCoene/acurve")

Example

This is a basic example which shows you how to solve a common problem:

library(aframer)
library(acurve)

browse_aframe(
  a_scene(
    a_dependency(), 
    acurve_dependency(),
    a_curve(
      id = "track",
      a_curve_point(position = xyz_aframe(-2, 1, -3)),
      a_curve_point(position = xyz_aframe(0, 0, -3)),
      a_curve_point(position = xyz_aframe(2, 1, -5))
    ),
    a_draw_curve(
      curveref = "#track",
      material = opts_aframe(
        shader = "line",
        color = "blue"
      )
    )
  )
)
You can’t perform that action at this time.