//
// PlayerObject::updateCollide from 0x33e284 to 0x33e374 (240 bytes)
//
// 6 xrefs:
// > PlayerObject::collidedWithSlopeInternal @ 0x34c084
// > PlayerObject::collidedWithSlopeInternal @ 0x34c090
// > GJBaseGameLayer::checkCollisions @ 0x4936ce
// > GJBaseGameLayer::checkCollisions @ 0x493bfc
// > GJBaseGameLayer::checkCollisions @ 0x493c48
// > GJBaseGameLayer::checkCollisions @ 0x493da2
//
// 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
//
void PlayerObject::updateCollide(PlayerObject *a1, PlayerCollisionDirection a2, GameObject *a3)
{
float v6; // s17
float v7; // s16
float y; // s16
int v9; // r0
float v10; // s16
int v11; // r0
const cocos2d::CCPoint *v12; // r0
const cocos2d::CCPoint *v13; // r0
v6 = a1->getObjectRect(a1)->size.height * 0.5;
v7 = a1->getObjectRect(a1)->size.width * 0.5;
switch ( a2 )
{
case 0:
y = a1->getPosition(a1)->y;
v9 = PlayerObject::flipMod(a1);
PlayerObject::updateCollideTop(a1, y + (float)(v6 * (float)v9), a3);
break;
case 1:
v10 = a1->getPosition(a1)->y;
v11 = PlayerObject::flipMod(a1);
PlayerObject::updateCollideBottom(a1, v10 - (float)(v6 * (float)v11), a3);
break;
case 2:
v12 = a1->getPosition(a1);
PlayerObject::updateCollideLeft(a1, v12->x - v7, a3);
break;
case 3:
v13 = a1->getPosition(a1);
PlayerObject::updateCollideRight(a1, v7 + v13->x, a3);
break;
default:
return;
}
}