23 lines
547 B
GDScript
23 lines
547 B
GDScript
extends PushingBodyPart
|
|
|
|
|
|
onready var anim = get_node("Mesh/AnimationPlayer")
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
pass # Replace with function body.
|
|
|
|
|
|
func action():
|
|
anim.play("ArmatureAction.001")
|
|
|
|
|
|
func push(body):
|
|
# TODO: Hardcoded values - maybe try to generalize
|
|
base.apply_impulse(transform.basis.xform(Vector3(0.0, 0.0, -3.0)), base.transform.basis.y * 10.0)
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
#func _process(delta: float) -> void:
|
|
# pass
|