Impl water volume

This commit is contained in:
MegaMech
2025-04-10 14:13:50 -06:00
parent 529f7c8bcf
commit 014329a59c
64 changed files with 273 additions and 221 deletions
+6
View File
@@ -7,6 +7,7 @@
#include "Editor.h"
#include "Collision.h"
#include "Light.h"
#include "Water.h"
#include "port/Engine.h"
#include <controller/controldevice/controller/mapping/keyboard/KeyboardScancodes.h>
@@ -117,6 +118,11 @@ namespace Editor {
eGameObjects.push_back(new LightObject(name, pos, rot));
}
WaterVolumeObject* Editor::AddWaterVolume(const char* name, FVector* pos) {
eGameObjects.push_back(new WaterVolumeObject(name, pos));
return reinterpret_cast<WaterVolumeObject*>(&eGameObjects.back());
}
void Editor::ClearObjects() {
for (auto& obj : eGameObjects) {
delete obj;