immersive-home/app/lib/utils/pointer/initiator.gd
2024-05-09 12:40:41 +02:00

20 lines
295 B
GDScript

extends RefCounted
## Defines what triggered a EventPointer
enum Type {
CONTROLLER_LEFT,
CONTROLLER_RIGHT,
HAND_LEFT,
HAND_RIGHT,
}
enum EventType {
GRIP,
TRIGGER,
}
var node: Node3D
var type: Type
func is_right() -> bool:
return type == Type.CONTROLLER_RIGHT||type == Type.HAND_RIGHT