MCPcopy 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_SetRotationFunction · 0.70
SpawnFunction · 0.70
TEST_FFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
PlayNodeParticlefxFunction · 0.50
RenderParticlefxNodesFunction · 0.50
CreateGOBonesFunction · 0.50
CompParticleFXUpdateFunction · 0.50
CompParticleFXOnMessageFunction · 0.50
SetWorldTransformFunction · 0.50
SetWorldTransformFunction · 0.50

Calls 1

SetRotationMethod · 0.45

Tested by 3

TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40