Transform namespace updated & freecam removed

This commit is contained in:
Jadis0x
2024-06-08 13:14:27 +03:00
parent d2ac02fde8
commit 136d3d137e
7 changed files with 43 additions and 58 deletions

View File

@@ -174,10 +174,10 @@ void Misc::SpawnPrefab(const char* prefabName) {
if (localPlayer) {
app::Quaternion rotation = app::Quaternion_get_identity(NULL);
app::Transform* playerTransform = Transform::Get(localPlayer);
app::Transform* playerTransform = Transform::GetTransform(localPlayer);
if (playerTransform == nullptr) return;
app::Vector3 playerPos = Transform::Position(playerTransform);
app::Vector3 playerPos = Transform::GetPosition(playerTransform);
if (app::BoltNetwork_Instantiate_6) {
app::GameObject* go = (app::GameObject*)app::BoltNetwork_Instantiate_6(p, playerPos, rotation, nullptr);