summaryrefslogtreecommitdiff
path: root/godot/scenes/vehicles/ship_parts/SquareSail.gd
blob: b387232aaceb019c19e9121becc6f2b87ac56522 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extends Spatial

var sheet_out: float = -6.2
var wind_bone: int = -1

func _ready():
	wind_bone = $Skeleton.find_bone("Bone")

func set_sheet(amount: float): #0 to 1
	$Skeleton/IKL.start(true)
	$Skeleton/IKR.start(true)
	$Sheet.transform.origin.y = amount * sheet_out