Skip to content

Commit c193bd3

Browse files
committed
Add /spider_army stress test
1 parent e166903 commit c193bd3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

games/devtest/mods/gltf/init.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,18 @@ core.register_chatcommand("show_model", {
107107
})
108108
end,
109109
})
110+
111+
-- Stress test for skeletal animation
112+
core.register_chatcommand("spider_army", {
113+
func = function(name)
114+
local pos = core.get_player_by_name(name):get_pos()
115+
local n = 10
116+
for x = 1, n do
117+
for y = 1, n do
118+
for z = 1, n do
119+
core.add_entity(pos + 3 * vector.new(x, y, z), "gltf:spider_animated")
120+
end
121+
end
122+
end
123+
end,
124+
})

0 commit comments

Comments
 (0)