godot-demo-projects/viewport/3d_in_2d/robot_3d.gd

9 lines
175 B
GDScript3
Raw Normal View History

2020-01-31 21:14:28 +01:00
extends KinematicBody
# A simple script to rotate the model.
onready var model = $Armature
const SPEED = 40
func _process(delta):
model.rotation_degrees.y += delta * SPEED