I'm having a hard time centering an instantiated 2d projectile and I don't understand why?

Godot Version

4.7.2.stable

Question

I’m trying my hand at making a simple top down shooter of sorts and for some reason I can’t find, the projectile seems to be offset on the y axis, if I print the position at the start seems to be 0,0, so that’s not it, rather than just offsetting it as needed I need to learn why that happens (I’m into this to learn at the moment).

On the player node, on _physics_process:

if Input.is_action_pressed("ataque"): var nuevo_proyectil = proyectil.instantiate() nuevo_proyectil.direccion = direccion_arco.angle() nuevo_proyectil.global_position = $Marker2D.global_position get_parent().add_child(nuevo_proyectil) print($Marker2D.global_position)

Captura de pantalla\_20261130\_133138

and the projectile in question:

extends CharacterBody2D

var direccion : float = 0.0
var velocidad : float = 1000.0

func _ready() → void:
rotation = direccion

func _process(_delta: float) → void:
velocity = Vector2(velocidad, 0).rotated(direccion)
move_and_slide()

I tried adding a Marker2D node to shoot from there but it made no difference, if I move the marker the offset follows it as if it was the player character.

The offset seems to be on the projectile itself, given that it rotates with it:

Only offsets I could find in my scenes are on collisionshape2d but even if they were related, the offset would lower them down.