class_name Player extends Node3D const PLAYER_SIZE: float = 0.4 const SPEED: float = 25. var mesh = preload("res://scenes/player.tscn").instantiate() func _init(id: int, new_name: String, pos: Vector2, _character: int): add_child(mesh) position = Vector3(pos.x, 0, pos.y) name = new_name func update_position(new_position: Vector2, new_rotation: float): position = Vector3(new_position.x, 0, new_position.y) rotation.y = new_rotation