//
// GJBaseGameLayer::canTouchObject from 0x46faac to 0x46facc (32 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x492570
//
// 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 GJBaseGameLayer::canTouchObject(GJBaseGameLayer *a1, GameObject *a2)
{
int m_currentChannel; // r3
GameObjectClassType m_classType; // r0
GLfloat y; // r2
m_currentChannel = a1->m_gameState.m_currentChannel;
if ( m_currentChannel && (m_classType = a2->m_classType, m_classType == Effect) )
{
y = a2[1].m_sQuad.tr.vertices.y;
if ( y != 0.0 )
LOBYTE(m_classType) = LODWORD(y) == m_currentChannel;
}
else
{
LOBYTE(m_classType) = 1;
}
return m_classType;
}