-
Notifications
You must be signed in to change notification settings - Fork 1
Floor
Josh Stovall edited this page Dec 19, 2020
·
2 revisions
Create a floor
var floor = new XR.Floor()
It is a Plane()
, pre-rotated to act as a floor.
Physics are turned on by default--objects can bounce on the floor.
Name | Type | Default | Description |
---|---|---|---|
color |
string | white |
color |
size |
float | 50 |
size of floor |
position |
array | [0,0,0] |
position of floor |
physics |
bool | true |
physics on/off |
bounce |
float | amount of restitution | |
friction |
float | amount of friction | |
repeat |
array | [1, 1] |
repeat texture (wrapS,wrapT) |