//
// GameObject::updateIsOriented from 0x100261a94 to 0x100261b60 (204 bytes)
//
// 2 xrefs:
// > PlayLayer::addObject @ 0x1001188a4
// > LevelEditorLayer::onPlaytest @ 0x100362ce4
//
// 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 __fastcall GameObject::updateIsOriented(GameObject *a1)
{
GameObjectType m_objectType; // w8
unsigned __int64 v4; // t2
a1->m_shouldUseOuterOb = 0;
m_objectType = a1->m_objectType;
if ( m_objectType <= Modifier )
{
if ( m_objectType )
{
if ( m_objectType == Decoration )
return;
goto LABEL_11;
}
LABEL_10:
if ( !a1->m_isNoTouch )
return;
goto LABEL_11;
}
if ( m_objectType == Slope || m_objectType == Breakable )
goto LABEL_10;
LABEL_11:
HIDWORD(v4) = -1527099483 * (int)((float (__fastcall *)(GameObject *))a1->getRotation)(a1) + 47721858;
LODWORD(v4) = HIDWORD(v4);
if ( (unsigned int)(v4 >> 1) >= 0x2D82D83 && a1->m_objectRadius <= 0.0 )
{
a1->m_shouldUseOuterOb = 1;
((void (__fastcall *)(GameObject *))a1->updateOrientedBox)(a1);
((void (__fastcall *)(GameObject *))a1->getObjectRect)(a1);
}
}