im currently making a code largely based off the war battles defold tutorial, however i only need the rockets to move upwards and they currently only do that when moving right, i need them to do it whatever direction my UFO is going in. i do not yet understand defold that well so please bare with.
im using:
local angle = math.atan2(self.dir.y, self.dir.x)
local rot = vmath.quat_rotation_z(angle)
local props = { dir = self.dir }
factory.create("#bulletfactory",nil, rot, props)