15 lines
451 B
GDScript
15 lines
451 B
GDScript
|
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))
|