initial shit
This commit is contained in:
10
Objects/Scripts/SGauge.gd
Normal file
10
Objects/Scripts/SGauge.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends Node3D
|
||||
|
||||
@export var Value : int
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
# 1. Remap the value
|
||||
var degree_value: float = remap(Value, 1.0, 100.0, 360.0 - 20, 25)
|
||||
|
||||
# 2. Assign a fresh Vector3 to rotation_degrees
|
||||
$Node3D2.rotation_degrees = Vector3(0.0, degree_value, 0.0)
|
||||
Reference in New Issue
Block a user