15 lines
434 B
GDScript
15 lines
434 B
GDScript
extends Node3D
|
|
|
|
@onready var policerobot: CharacterBody3D = $policerobot
|
|
@onready var pelvis: Node3D = $policerobot/Node/base/pelvis
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
pass # Replace with function body.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta: float) -> void:
|
|
policerobot.rotation.y += delta
|
|
pelvis.rotation.y -= delta
|