Files

21 lines
370 B
Swift

//
// 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)
}
}