phs-galaxy/Planet.gd

12 lines
158 B
GDScript3
Raw Permalink Normal View History

extends StaticBody
class_name Planet
export(float) var mass
export(float) var rotate_speed := 0.0
func _process(delta):
rotate_y(rotate_speed * delta)