| 112 | void ScriptAPI::set_world_title(const std::string& title) { simulation_.setWorldTitle(title); } |
| 113 | |
| 114 | void 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 | |
| 119 | std::tuple<float, float, float> ScriptAPI::world_size() const { |
| 120 | const glm::vec3 size = simulation_.world().getWorldSize(); |
nothing calls this directly
no test coverage detected