immersive-home/docs/reference/lib--utils--pointer--pointer.md

116 lines
6.2 KiB
Markdown
Raw Permalink Normal View History

2024-03-16 19:45:43 +02:00
# Pointer
**Inherits:** [Node](https://docs.godotengine.org/de/4.x/classes/class_node.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
Logic for the raycast to interact with objects
2024-03-16 19:45:43 +02:00
## Properties
2024-03-17 01:14:31 +02:00
| Name | Type | Default |
| -------------------------------------- | ----------------------------------------------------------------------------- | ------------------ |
| [click_point](#prop-click-point) | [Vector3](https://docs.godotengine.org/de/4.x/classes/class_vector3.html) | `Vector3(0, 0, 0)` |
| [initiator](#prop-initiator) | [Initiator](/reference/lib--utils--pointer--initiator.html) | |
| [is_grabbed](#prop-is-grabbed) | [bool](https://docs.godotengine.org/de/4.x/classes/class_bool.html) | `false` |
| [is_pressed](#prop-is-pressed) | [bool](https://docs.godotengine.org/de/4.x/classes/class_bool.html) | `false` |
| [last_collided](#prop-last-collided) | [Object](https://docs.godotengine.org/de/4.x/classes/class_object.html) | `null` |
| [moved](#prop-moved) | [bool](https://docs.godotengine.org/de/4.x/classes/class_bool.html) | `false` |
| [ray](#prop-ray) | [RayCast3D](https://docs.godotengine.org/de/4.x/classes/class_raycast3d.html) | |
| [time_pressed](#prop-time-pressed) | [float](https://docs.godotengine.org/de/4.x/classes/class_float.html) | `0.0` |
| [timespan_click](#prop-timespan-click) | [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) | `400.0` |
2024-03-16 19:45:43 +02:00
## Methods
| Returns | Name |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| void | [_emit_event](#-emit-event) ( type: [String](https://docs.godotengine.org/de/4.x/classes/class_string.html), target: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) ) |
| void | [_handle_enter_leave](#-handle-enter-leave) ( ) |
| void | [_handle_move](#-handle-move) ( ) |
| void | [_init](#-init) ( initiator: [Initiator](/reference/lib--utils--pointer--initiator.html), ray: [RayCast3D](https://docs.godotengine.org/de/4.x/classes/class_raycast3d.html) ) |
| void | [_on_pressed](#-on-pressed) ( type: [int](https://docs.godotengine.org/de/4.x/classes/class_int.html) ) |
| void | [_on_released](#-on-released) ( type: [int](https://docs.godotengine.org/de/4.x/classes/class_int.html) ) |
| void | [_physics_process](#-physics-process) ( _delta: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) ) |
| void | [_ready](#-ready) ( ) |
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
### click_point: [Vector3](https://docs.godotengine.org/de/4.x/classes/class_vector3.html) {#prop-click-point}
2024-03-16 19:45:43 +02:00
No description provided yet.
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
No description provided yet.
2024-03-17 01:14:31 +02:00
### is_grabbed: [bool](https://docs.godotengine.org/de/4.x/classes/class_bool.html) {#prop-is-grabbed}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### is_pressed: [bool](https://docs.godotengine.org/de/4.x/classes/class_bool.html) {#prop-is-pressed}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### last_collided: [Object](https://docs.godotengine.org/de/4.x/classes/class_object.html) {#prop-last-collided}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### moved: [bool](https://docs.godotengine.org/de/4.x/classes/class_bool.html) {#prop-moved}
2024-03-16 19:45:43 +02:00
No description provided yet.
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
No description provided yet.
2024-03-17 01:14:31 +02:00
### time_pressed: [float](https://docs.godotengine.org/de/4.x/classes/class_float.html) {#prop-time-pressed}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### timespan_click: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) {#prop-timespan-click}
2024-03-16 19:45:43 +02:00
No description provided yet.
## Method Descriptions
2024-03-17 01:14:31 +02:00
### _emit_event (type: [String](https://docs.godotengine.org/de/4.x/classes/class_string.html) , target: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) ) -> void {#-emit-event}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### _handle_enter_leave ( ) -> void {#-handle-enter-leave}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### _handle_move ( ) -> void {#-handle-move}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### _init (initiator: [Initiator](/reference/lib--utils--pointer--initiator.html) , ray: [RayCast3D](https://docs.godotengine.org/de/4.x/classes/class_raycast3d.html) ) -> void {#-init}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### _on_pressed (type: [int](https://docs.godotengine.org/de/4.x/classes/class_int.html) ) -> void {#-on-pressed}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### _on_released (type: [int](https://docs.godotengine.org/de/4.x/classes/class_int.html) ) -> void {#-on-released}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### _physics_process (_delta: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) ) -> void {#-physics-process}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### _ready ( ) -> void {#-ready}
2024-03-16 19:45:43 +02:00
No description provided yet.