//
// GJTransformControl::applyRotation from 0x39fdfc to 0x39fe40 (68 bytes)
//
// 2 xrefs:
// > EditorUI::transformObjectCall @ 0x39fede
// > EditorUI::updateTransformControl @ 0x3a05e2
//
// 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 GJTransformControl::applyRotation(GJTransformControl *a1, float a2)
{
cocos2d::CCNode *m_mainNode; // r0
GJTransformControlDelegate *m_delegate; // r0
if ( a2 != a1->m_rotationY )
{
m_mainNode = a1->m_mainNode;
a1->m_rotationY = a2;
((void (__fastcall *)(cocos2d::CCNode *))m_mainNode->setRotation)(m_mainNode);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(GJTransformControlDelegate *, _DWORD))m_delegate->transformRotationChanged)(
m_delegate,
LODWORD(a1->m_rotationY));
}
GJTransformControl::updateButtons(a1, 0, 0);
}