TinyAdventure/systems/BuildSystem.gd

15 lines
451 B
GDScript
Raw Normal View History

2024-09-08 22:06:34 +02:00
class_name BuildSystem
extends Node
@onready var player = %Player
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
var build_location:Vector3 = player.get_actionable_global_transform()
build_location = Vector3(roundf(build_location.x), build_location.y, roundf(build_location.z))