immersive-home/app/lib/events/event_pointer.gd
2024-03-17 00:14:31 +01:00

10 lines
350 B
GDScript

extends EventBubble
## Triggered when the raycast of the controller or hand hits or clicks on an object.
class_name EventPointer
const Initiator = preload ("res://lib/utils/pointer/initiator.gd")
## Either the controller or the hand that triggered the event.
var initiator: Initiator
## The raycast that collided with the target.
var ray: RayCast3D