Skip to content

Reality

Josh Stovall edited this page Dec 3, 2020 · 1 revision

Reality()

Create a reality.

This is the first function to be called, it will initalize the immersive experience.

var myReality = new XR.Reality();

Parameters

Name Type Default Description
fps int frames per second
fov int field of view
physics bool true physics on or off
gravity float or array -10 gravity [x,y,z] or just y
position array [x,y,z] location for camera to start
near int 0.1 min render distance
far int 1000 max render distance

physics

turn physics on or off
see physics

gravity

if a single number, gravity will exist downward if an array, there can me multi-dimensional gravity [x_force,y_force,z_force]

Clone this wiki locally