Generates a Godot scene from Node

This commit is contained in:
2026-08-26 09:16:19 -07:00
parent c9e1993b65
commit 6c3ef41a57
6 changed files with 291 additions and 3 deletions
@@ -0,0 +1,20 @@
//
// NodeRotator.swift
// Logic
//
// Created by Alex Loren on 8/26/26.
//
import SwiftGodot
@Godot
class NodeRotator: Node3D {
// MARK: - Properties
public var axis: Vector3 = .zero
public var speed: Double = 5
// MARK: - Functions
public override func _physicsProcess(delta: Double) {
rotate(axis: axis.normalized(), angle: speed * delta)
}
}