Methods
(async) load(x, y, z, rotationY)
Create a Shark
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
move(delta)
Move the shark in a circle
Parameters:
| Name | Type | Description |
|---|---|---|
delta |
Number | Delta of the last frame |
- Source:
setUpModel(data)
Set the Animation and Scale of the shark
Parameters:
| Name | Type | Description |
|---|---|---|
data |
THREE.Object3D |
- Source:
Returns:
THREE.Object3D
(async) startAnimation()
Start the Animation of the shark
- Source: