Initial Commit

This commit is contained in:
2025-07-05 13:32:33 +01:00
commit d4084fa60f
46 changed files with 3299 additions and 0 deletions

20
scripts/control_box.gd Normal file
View File

@ -0,0 +1,20 @@
extends MeshInstance3D
var movingTowards: Vector3
var currentLocation: Vector3
func _ready() -> void:
GameEngine.getGE().controlBox = self
currentLocation = self.position
movingTowards = currentLocation
func _process(delta: float) -> void:
var currentMousePos = GameEngine.getGE().mainCamera.getMouseRayCast();
if currentMousePos != Vector3.INF && currentMousePos != movingTowards:
movingTowards.x = currentMousePos.x
self.position = self.position.move_toward(movingTowards, GameEngine.getGE().getGameSpeed(delta))
func getMoveToLocation() -> Vector3:
return self.position