-
Notifications
You must be signed in to change notification settings - Fork 1
Reality
Josh Stovall edited this page Dec 3, 2020
·
1 revision
Create a reality.
This is the first function to be called, it will initalize the immersive experience.
var myReality = new XR.Reality();
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 |
turn physics on or off
see physics
if a single number, gravity will exist downward if an array, there can me multi-dimensional gravity [x_force,y_force,z_force]