init
This commit is contained in:
14
addons/godot-xr-tools/objects/wind_area.gd
Normal file
14
addons/godot-xr-tools/objects/wind_area.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
@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(xr_name: String) -> bool:
|
||||
return xr_name == "XRToolsWindArea"
|
||||
Reference in New Issue
Block a user