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

@@ -1,4 +1,4 @@
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
// Target Unity version: 2021.2.0 - 2021.2.99
#if defined(_GHIDRA_) || defined(_IDA_)
@@ -84572,6 +84572,18 @@ struct Vector3 {
float x;
float y;
float z;
app::Vector3 operator+(const app::Vector3& other) const {
return { x + other.x, y + other.y, z + other.z };
}
app::Vector3 operator*(float scalar) const {
return { x * scalar, y * scalar, z * scalar };
}
app::Vector3 operator-(const app::Vector3& other) const {
return { x - other.x, y - other.y, z - other.z };
}
};
struct Vector3__Boxed {