Skip to content
Josh Stovall edited this page Dec 19, 2020 · 2 revisions

Floor()

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.

Parameters

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)
Clone this wiki locally