Methods
(async) loadAcaiPalm(x, y, z, rotationY) → {THREE.Object3D}
Parameters:
| Name | Type | Description |
|---|---|---|
x |
Number | x coordinate of object |
y |
Number | y coordinate of object |
z |
Number | z coordinate of object |
rotationY |
Number | rotationY of object |
- Source:
Returns:
acaiPalm
- Type
- THREE.Object3D
(async) loadDatePalm(x, y, z, rotationY) → {THREE.Object3D}
Parameters:
| Name | Type | Description |
|---|---|---|
x |
Number | x coordinate of object |
y |
Number | y coordinate of object |
z |
Number | z coordinate of object |
rotationY |
Number | rotationY of object |
- Source:
Returns:
datePalm
- Type
- THREE.Object3D
(async) loadPalmWithCoconut(x, y, z, rotationY) → {THREE.Object3D}
Parameters:
| Name | Type | Description |
|---|---|---|
x |
Number | x coordinate of object |
y |
Number | y coordinate of object |
z |
Number | z coordinate of object |
rotationY |
Number | rotationY of object |
- Source:
Returns:
PalmWithCoconut
- Type
- THREE.Object3D
(async) loadSeaPlant(x, y, z, rotationY) → {THREE.Object3D}
Parameters:
| Name | Type | Description |
|---|---|---|
x |
Number | x coordinate of object |
y |
Number | y coordinate of object |
z |
Number | z coordinate of object |
rotationY |
Number | rotationY of object |
- Source:
Returns:
seaPlant
- Type
- THREE.Object3D
(async) loadTree(x, y, z, rotationY) → {THREE.Object3D}
Parameters:
| Name | Type | Description |
|---|---|---|
x |
Number | x coordinate of object |
y |
Number | y coordinate of object |
z |
Number | z coordinate of object |
rotationY |
Number | rotationY of object |
- Source:
Returns:
smol-tree
- Type
- THREE.Object3D
setText()
Set the text of the interaction text
- Source:
setUpModel(data)
Set the Animations and Scale of the object
Parameters:
| Name | Type | Description |
|---|---|---|
data |
THREE.Object3D |
- Source:
Returns:
THREE.Object3D
(async) startAnimation()
Start the animation
- Source: