//
// GJBaseGameLayer::rotateObject from 0x474744 to 0x4747a0 (92 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::rotateObjects @ 0x474aae
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x48adae
//
// 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)
{
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 )
{
a2->m_isObjectRectDirty = 1;
a2->m_isOrientedBoxDirty = 1;
if ( !a2->m_shouldUseOuterOb )
GameObject::calculateOrientedBox(a2);
}
}
}