immersive-home/app/lib/utils/pointer/initiator.gd

20 lines
295 B
GDScript3
Raw Normal View History

2023-11-28 00:46:05 +02:00
extends RefCounted
2024-03-17 01:14:31 +02:00
## Defines what triggered a EventPointer
2023-11-27 01:23:19 +02:00
enum Type {
CONTROLLER_LEFT,
CONTROLLER_RIGHT,
HAND_LEFT,
HAND_RIGHT,
}
enum EventType {
GRIP,
TRIGGER,
}
var node: Node3D
var type: Type
func is_right() -> bool:
2024-03-17 01:14:31 +02:00
return type == Type.CONTROLLER_RIGHT||type == Type.HAND_RIGHT