change vec2 to have struct def in ffi.metatype()