MCPcopy Create free account
hub / github.com/defold/defold / UpdateRotationToEuler

Function UpdateRotationToEuler

engine/gameobject/src/gameobject/gameobject.cpp:3411–3416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3409 }
3410
3411 static void UpdateRotationToEuler(HInstance instance)
3412 {
3413 Quat q = instance->m_Transform.GetRotation();
3414 instance->m_EulerRotation = dmVMath::QuatToEuler(q.getX(), q.getY(), q.getZ(), q.getW());
3415 instance->m_PrevEulerRotation = instance->m_EulerRotation;
3416 }
3417
3418 static void UpdateEulerToRotation(HInstance instance)
3419 {

Callers 1

GetPropertyFunction · 0.85

Calls 6

QuatToEulerFunction · 0.50
GetRotationMethod · 0.45
getXMethod · 0.45
getYMethod · 0.45
getZMethod · 0.45
getWMethod · 0.45

Tested by

no test coverage detected