immersive-home/addons/godot-xr-tools/objects/wind_area.gd
2023-10-16 19:10:20 +02:00

15 lines
333 B
GDScript

@tool
class_name XRToolsWindArea
extends Area3D
## Vector (direction and magnitude) of wind in this area
@export var wind_vector : Vector3 = Vector3.ZERO
## Wind drag factor
@export var drag : float = 1.0
# Add support for is_xr_class on XRTools classes
func is_xr_class(name : String) -> bool:
return name == "XRToolsWindArea"