local app = ...
function my_system(query_1)
local awa = nil
for transform in query_1:iter() do
if awa == nil then
awa = transform
end
print(transform)
end
print(awa.translation)
awa = nil
end
function second_system(my_q)
for t, stretch in my_q:iter() do
print(t.translation.x)
print(stretch)
stretch.x = t.translation.x
end
end
function third(q1, q2)
for t in q1:iter() do
end
for s in q2:iter() do
print(s:get_sum())
print("and sum with is")
print(s:get_sum_with(4370.0))
end
end
local thing = nil
function try_do_bad(q)
if thing == nil then
for t in q:iter() do
print("setting")
thing = t
end
else
thing.translation.x = 0.1
print(thing)
end
end
app:register_system(third, { {bevy_transform.components.transform.Transform.mut}, {simple_test.Stretch.mut} })
print("hello world!")