MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / set_box

Method set_box

Lattice/Scripting/ScriptAPI.cpp:114–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112void ScriptAPI::set_world_title(const std::string& title) { simulation_.setWorldTitle(title); }
113
114void ScriptAPI::set_box(float x, float y, sol::variadic_args args) {
115 const float z = args.size() >= 1 ? static_cast<float>(args.get<float>(0)) : 6.0f;
116 simulation_.setSizeBox(glm::vec3(x, y, z));
117}
118
119std::tuple<float, float, float> ScriptAPI::world_size() const {
120 const glm::vec3 size = simulation_.world().getWorldSize();

Callers

nothing calls this directly

Calls 2

setSizeBoxMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected