Class: ChairBuilder

ChairBuilder()

Helper class to build a chair.

Constructor

new ChairBuilder()

Source:

Methods

(async) loadChairWithTowel(x, y, z, rotationY)

Create a chair with towel.
Parameters:
Name Type Description
x Number Position in x axis
y Number Position in y axis
z Number Position in z axis
rotationY Number Rotation in y axis
Source:
Returns:
THREE.Object3D

setText()

Set the text of the interaction text
Source:

setUpModel(data)

Set the Animations and Scale of the Chair
Parameters:
Name Type Description
data THREE.Object3D
Source:
Returns:
THREE.Object3D

sitOnChair(setFunction)

Parameters:
Name Type Description
setFunction function Call these function that give it a Vector3 position and a Quaternion rotation
Source: