INNER CODE UNIT · C++
stepCount
camila314/gdp · GJBaseGameLayer/GJBaseGameLayer_update.cpp:78
int stepCount = fmax(1.0, (delta * 240.0) / fmin(m_timewarp, 1));
m_editorClicked = false;
if (!m_fixedStartCam && m_levelReset) {
m_cameraVelocity.x = ws.width * 0.5 + -75.0 + 15.0;
}
m_levelReset = false;
unknown_matmul(&this->m_unk345c, &this->m_unk342c, 0.1); // 0x10020396c
bool hasDeltaRemainder = false;
if (stepCount > 0) {
float physicsDelta = delta / stepCount;
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