Description Usage Arguments Details Value
View source: R/pc_control_camera.R
Personal computer movement controls for an A-Frame scene camera
1 2 3 4 5 6 7 | a_pc_control_camera(
.js_sources = list(),
easingY = 15,
acceleration = 100,
.version_num = "4.1.2",
...
)
|
.js_sources |
Defaults to version 4.1.2 of the controls. |
easingY |
Easing rate of movement in the y direction (up). |
acceleration |
Acceleration of movement in forward, backward, left, and right directions. |
.version_num |
A-Frame extras version number. |
... |
additional components to be added to this entity. |
This function returns an entity that will enable the scene camera perspective to be controlled using WASD keys and the mouse.
The entity imports an external js source for controls written by Don McCurdy.
An entity object describing a camera controlled by keyboard and mouse.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.