INNER CODE UNIT · C++

physicsSecond

camila314/gdp · GJBaseGameLayer/GJBaseGameLayer_update.cpp:90

                float physicsSecond = (delta * 60.0) / stepCount;
                float warpedPhysicsDelta = (delta / m_timewarp) / stepCount;
                float prevTimewarp = m_timewarp;

                for (int stepIter = 0; stepIter < stepCount; ++stepIter) {
                    // i dont know what this is
                    this->m_unk342c = {0, 0, 0, 0};

                    m_totalTime += physicsDelta;
                    m_totalWarpedTime += warpedPhysicsDelta;
                    if (!this->m_bool_32b8)
                        this->m_double_32b0 += warpedPhysicsDelta;

                    this->updateAttemptTime(warpedPhysicsDelta);
                    m_player1->m_totalTime = m_totalTime;
                    m_player2->m_totalTime = m_totalTime;

                    this->m_map_2ea8.clear();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…