Bullets in 3D going: Up when looking down, down when looking up
That only happens in the "y axis" while looking to the sides and shooting works correctly.
that is the code: https://imgur.com/a/f5yP3pM
func physicsprocess(delta):
-------disp()
var bala = load("res://Assets/Escenes/armes/pistola/bala.tscn")
func disp():
----------if Input.isactionjustpressed("disp"):
----------------var b = bala.instance()
----------------getparent().getparent().getparent().addchild(b)
----------------b.globaltransform = $puntb.globaltransform
----------------b.applycentralimpulse(getparent().getparent().xform(Vector3(0, 0, 100)))