Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/defold/defold
/ SetRotation
Function
SetRotation
engine/gameobject/src/gameobject/gameobject.cpp:3191–3195 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3189
}
3190
3191
void SetRotation(HInstance instance, Quat rotation)
3192
{
3193
instance->m_Transform.SetRotation(rotation);
3194
instance->m_Collection->m_DirtyTransforms = 1;
3195
}
3196
3197
Quat GetRotation(HInstance instance)
3198
{
Callers
12
Script_SetRotation
Function · 0.70
Spawn
Function · 0.70
TEST_F
Function · 0.50
TEST_F
Function · 0.50
TEST_F
Function · 0.50
PlayNodeParticlefx
Function · 0.50
RenderParticlefxNodes
Function · 0.50
CreateGOBones
Function · 0.50
CompParticleFXUpdate
Function · 0.50
CompParticleFXOnMessage
Function · 0.50
SetWorldTransform
Function · 0.50
SetWorldTransform
Function · 0.50
Calls
1
SetRotation
Method · 0.45
Tested by
3
TEST_F
Function · 0.40
TEST_F
Function · 0.40
TEST_F
Function · 0.40