player.gd 235 B

1234567891011121314
  1. extends KinematicBody
  2. # A simple program to rotate the model around
  3. var model = null
  4. const SPEED = 40
  5. func _ready():
  6. model = get_node("Armature")
  7. set_process(true)
  8. func _process(delta):
  9. model.rotation_degrees.y += delta * SPEED