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

14 lines
234 B
GDScript3
Raw Normal View History

2017-08-19 19:10:25 +02:00
extends KinematicBody
# A simple program to rotate the model around
var model = null
const SPEED = 40
func _ready():
model = get_node("Armature")
set_process(true)
func _process(delta):
model.rotation_deg.y += delta * SPEED