immersive-home/docs/reference/EventPointer.md

36 lines
1.1 KiB
Markdown
Raw Normal View History

2024-03-16 19:45:43 +02:00
# EventPointer
**Inherits:** [EventBubble](/reference/EventBubble.html)
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
## Description
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
Triggered when the raycast of the controller or hand hits or clicks on an object.
2024-03-16 19:45:43 +02:00
## Properties
2024-03-17 01:14:31 +02:00
| Name | Type | Default |
| ---------------------------- | ----------------------------------------------------------------------------- | ------- |
| [initiator](#prop-initiator) | [Initiator](/reference/lib--utils--pointer--initiator.html) | |
| [ray](#prop-ray) | [RayCast3D](https://docs.godotengine.org/de/4.x/classes/class_raycast3d.html) | |
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
## Constants
### Initiator = `<Object>` {#const-Initiator}
No description provided yet.
2024-03-16 19:45:43 +02:00
## Property Descriptions
2024-03-17 01:14:31 +02:00
### initiator: [Initiator](/reference/lib--utils--pointer--initiator.html) {#prop-initiator}
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
Either the controller or the hand that triggered the event.
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
### ray: [RayCast3D](https://docs.godotengine.org/de/4.x/classes/class_raycast3d.html) {#prop-ray}
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
The raycast that collided with the target.