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():
|
2017-10-07 15:08:34 +02:00
|
|
|
model = get_node("Armature")
|
|
|
|
set_process(true)
|
2017-08-19 19:10:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
func _process(delta):
|
2017-11-19 14:41:50 +01:00
|
|
|
model.rotation_degrees.y += delta * SPEED
|