// // GameObject::getScalePosDelta from 0x355d90 to 0x355e3a (170 bytes) // // 6 xrefs: // > PlayerObject::collidedWithObjectInternal @ 0x3454b2 // > PlayerObject::collidedWithObjectInternal @ 0x3454bc // > PlayerObject::collidedWithObjectInternal @ 0x345ad8 // > PlayerObject::collidedWithObjectInternal @ 0x345aec // > PlayerObject::postCollision @ 0x34cede // > PlayerObject::postCollision @ 0x34cffc // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCPoint *GameObject::getScalePosDelta(cocos2d::CCPoint *__return_ptr retstr, GameObject *a2) { const cocos2d::CCRect *v4; // r0 float height; // r2 float y; // r2 cocos2d::CCRect v8; // [sp+4h] [bp-14h] BYREF cocos2d::CCPoint::CCPoint(retstr, &stru_AC5CA0); v4 = a2->getObjectRect(a2); cocos2d::CCRect::CCRect(&v8, v4); if ( a2->m_isRotationAligned ) { height = v8.size.height; v8.size.height = v8.size.width; v8.size.width = height; } if ( GameObject::didScaleXChange(a2) ) retstr->x = (float)(v8.size.width - (float)((float)(v8.size.width / a2->m_scaleX) * a2->m_customScaleX)) * 0.5; if ( GameObject::didScaleYChange(a2) ) retstr->y = (float)(v8.size.height - (float)((float)(v8.size.height / a2->m_scaleY) * a2->m_customScaleY)) * 0.5; if ( a2->m_isRotationAligned ) { y = retstr->y; retstr->y = retstr->x; retstr->x = y; } return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source