started modeling
This commit is contained in:
11
godot/scripts/camera.gd
Normal file
11
godot/scripts/camera.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends Camera3D
|
||||
|
||||
var target_angle:int
|
||||
var current_angle:int
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
target_angle = GLOBALVARS.selected_player * 90
|
||||
if current_angle != target_angle:
|
||||
current_angle += 0.001*(target_angle-current_angle)
|
||||
|
||||
global_rotation_degrees.y = current_angle
|
1
godot/scripts/camera.gd.uid
Normal file
1
godot/scripts/camera.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://doxajvf15fv27
|
3
godot/scripts/globalvars.gd
Normal file
3
godot/scripts/globalvars.gd
Normal file
@@ -0,0 +1,3 @@
|
||||
extends Node
|
||||
|
||||
var selected_player:int = 0
|
1
godot/scripts/globalvars.gd.uid
Normal file
1
godot/scripts/globalvars.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://xpqvd1g7y1xp
|
Reference in New Issue
Block a user