immersive-home/app/addons/godot-xr-tools/objects/wind_area.gd

15 lines
333 B
GDScript3
Raw Normal View History

2023-10-16 20:10:20 +03:00
@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"