Methods
applyForce(force)
Apply a force to the ball
Parameters:
| Name | Type | Description |
|---|---|---|
force |
THREE.Vector3 |
- Source:
kick(direction)
Kick the ball in that direction
Parameters:
| Name | Type | Description |
|---|---|---|
direction |
THREE.Vector3 |
- Source:
(async) loadSoccerBall(x, y, z, rotationY)
Creates a ball.
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
- Source:
setUpModel(data)
Set the Animations and Scale of the Ball
Parameters:
| Name | Type | Description |
|---|---|---|
data |
THREE.Object3D |
- Source:
Returns:
THREE.Object3D
update()
Update the position of the ball
- Source: