helper functions added

- Added helper functions to facilitate Vector3 and Transform operations.
- Defined operator overloads for Vector3 (not tested).
- Added fly and spawnPrefab functions to the Misc namespace (not tested).
- Added fly speed to settings.
This commit is contained in:
Jadis0x
2024-05-19 02:43:52 +03:00
parent 0c809fc44b
commit d32b92d1e3
9 changed files with 156 additions and 7 deletions

View File

@@ -2,12 +2,25 @@
#include "Wrapper.h"
#include <vector>
#include <iostream>
namespace Unity {
namespace GameObject {
// DO_APP_FUNC(0x02D34DA0, Component *, GameObject_GetComponentByName, (GameObject * __this, String * type, MethodInfo * method));
app::Component* GetComponentByName(app::GameObject* go, const char* type);
}
namespace Math{
namespace Vector3 {
std::string ToString(app::Vector3* v);
std::string ToString(app::Vector3 v);
}
}
namespace Transform{
app::Transform* Get(app::GameObject* go);
app::Vector3 Position(app::Transform* transform);
}
}
namespace UnityCore {