generated from krampus/template-godot4
This commit is contained in:
parent
ec02444014
commit
1ef6cce565
@ -41,10 +41,10 @@ func do_kick(landing_speed: float) -> void:
|
||||
var rebound_time := rebound_time_curve.sample(landing_speed)
|
||||
var tween := _get_tween()
|
||||
tween.set_parallel(true)
|
||||
tween.tween_property(self, "rotation:x", 0, rebound_time).set_trans(Tween.TRANS_CIRC).set_ease(
|
||||
tween.tween_property(self, "rotation:x", 0, rebound_time).set_trans(Tween.TRANS_CUBIC).set_ease(
|
||||
Tween.EASE_OUT
|
||||
)
|
||||
tween.tween_property(self, "position:y", 0, rebound_time).set_trans(Tween.TRANS_CIRC).set_ease(
|
||||
tween.tween_property(self, "position:y", 0, rebound_time).set_trans(Tween.TRANS_CUBIC).set_ease(
|
||||
Tween.EASE_OUT
|
||||
)
|
||||
|
||||
|
||||
@ -27,18 +27,18 @@ _data = [Vector2(-7, 2.5), 0.0, 0.0, 0, 0, Vector2(0, 0), 0.0, 0.0, 0, 0, Vector
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="Curve" id="Curve_8ydov"]
|
||||
_limits = [0.0, 4.0, 0.0, 10.0]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(10, 4), 0.0, 0.0, 0, 0]
|
||||
_limits = [0.0, 6.0, 0.0, 16.0]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(16, 6), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Curve" id="Curve_cwolq"]
|
||||
_limits = [0.0, 0.05, 0.0, 10.0]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(10, 0.05), 0.0, 0.0, 0, 0]
|
||||
_limits = [0.0, 0.2, 0.0, 16.0]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(16, 0.2), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Curve" id="Curve_ylhto"]
|
||||
_limits = [0.0, 0.6, 0.0, 10.0]
|
||||
_data = [Vector2(0, 0.1), 0.0, 0.0, 0, 0, Vector2(10, 0.6), 0.0, 0.0, 0, 0]
|
||||
_limits = [0.0, 1.0, 0.0, 16.0]
|
||||
_data = [Vector2(0, 0.1), 0.0, 0.0, 0, 0, Vector2(16, 1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_244u8"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user