//
// OBB2D::init from 0x2f27f8 to 0x2f2846 (78 bytes)
//
// 1 xrefs:
// > OBB2D::create @ 0x2f28e4
//
// 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
//
bool OBB2D::init(OBB2D *a1, cocos2d::CCPoint a2, float a3, float a4, float a5)
{
float x; // r10
float y; // r8
_BOOL4 v9; // r5
cocos2d::CCPoint v10; // r1
float v12; // [sp+4h] [bp-14h]
cocos2d::CCPoint v13; // [sp+Ch] [bp-Ch] BYREF
x = a2.x;
y = a2.y;
v9 = cocos2d::CCNode::init(a1);
if ( v9 )
{
cocos2d::CCPoint::CCPoint(&v13, (const cocos2d::CCPoint *)LODWORD(x));
LODWORD(v10.x) = &v13;
v10.y = y;
OBB2D::calculateWithCenter(a1, v10, a3, a4, v12);
}
return v9;
}