Constructor
new InteractionHelper(camera)
Parameters:
| Name | Type | Description |
|---|---|---|
camera |
THREE.Camera |
- Source:
Methods
addInteraction(object, func, event, eventFunc)
Add Object and Funktion to check
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
object |
THREE.MESH | Mesh for Raycast | |
func |
function | Executed if the camera is near the object | |
event |
String | null | If set, add a Listener to the body with given name for example "keydown". Default to null. |
eventFunc |
function | null | Function of the Event to add. Default to null. |
- Source:
checkInteractions()
Needs to be called to check if the camera is near the object
- Source:
- See:
removeInteraction(object)
Remove Object to check
Parameters:
| Name | Type | Description |
|---|---|---|
object |
THREE.MESH | Mesh for Raycast |
- Source: