aphysics_dependency: Dependency

Description Usage Arguments Note Examples

Description

Add aphysics dependency.

Usage

1

Arguments

cdn

Whether to use local or CDN files.

Note

Source a_dependency before aphysics_dependency.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
library(aframer)

browse_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
    )
  )
)

JohnCoene/aphysics documentation built on May 24, 2019, 9:52 a.m.