//
// GJBaseGameLayer::rotateObject from 0x862808 to 0x862884 (124 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::rotateObjects @ 0x862d08
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x884a18
// > ??> @ 0xc5430
//
// 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 GJBaseGameLayer::rotateObject(GJBaseGameLayer *a1, GameObject *a2, float a3)
{
float m_rotationYOffset; // s2
_BOOL4 m_shouldUseOuterOb; // w1
if ( a3 != 0.0 && a2->m_canRotateFree )
{
m_rotationYOffset = a2->m_rotationYOffset;
a2->m_rotationXOffset = a2->m_rotationXOffset + a3;
a2->m_rotationYOffset = m_rotationYOffset + a3;
GameObject::addRotation(a2, a3);
if ( a2->m_objectType != Decoration )
{
m_shouldUseOuterOb = a2->m_shouldUseOuterOb;
a2->m_isObjectRectDirty = 1;
a2->m_isOrientedBoxDirty = 1;
if ( !m_shouldUseOuterOb )
GameObject::calculateOrientedBox(a2);
}
}
}