//
// GJBaseGameLayer::rotateObject from 0x1001f8d84 to 0x1001f8e00 (124 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::rotateObjects @ 0x1001f9120
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x1001fa680
//
// 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 GJBaseGameLayer::rotateObject(GJBaseGameLayer *a1, GameObject *a2, float a3)
{
if ( a3 != 0.0 && a2->m_canRotateFree )
{
a2->m_rotationXOffset = a2->m_rotationXOffset + a3;
a2->m_rotationYOffset = a2->m_rotationYOffset + a3;
GameObject::addRotation(a2, a3);
if ( a2->m_objectType != Decoration )
{
*(_WORD *)&a2->m_isObjectRectDirty = 257;
if ( !a2->m_shouldUseOuterOb )
GameObject::calculateOrientedBox(a2);
}
}
}