immersive-home/addons/godot-xr-tools/objects/grab_points/grab_point.gd

19 lines
457 B
GDScript3
Raw Normal View History

2023-10-16 20:10:20 +03:00
class_name XRToolsGrabPoint
extends Marker3D
## XR Tools Grab Point Base Script
##
## This script is the base for all grab points. Pickable object extending from
## [XRToolsPickable] can have numerous grab points to control where the object
## is grabbed from.
## If true, the grab point is enabled for grabbing
@export var enabled : bool = true
## Test if a grabber can grab by this grab-point
func can_grab(_grabber : Node) -> bool:
return enabled