summaryrefslogtreecommitdiff
path: root/godot/scenes/vehicles/ship_parts/SquareSail.gd
blob: 72159d84e48853871f4f4ea16b92981c228085b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
	$Sheet.transform.origin.y = amount * sheet_out
	print(amount)
	$Skeleton/IKL.start(true)
	$Skeleton/IKR.start(true)