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

Function UpdateEulerToRotation

engine/gui/src/gui.cpp:3048–3054  ·  view source on GitHub ↗

Same euler checks as in gameobject.cpp

Source from the content-addressed store, hash-verified

3046
3047 // Same euler checks as in gameobject.cpp
3048 static void UpdateEulerToRotation(Node& node)
3049 {
3050 dmVMath::Vector4 euler = node.m_Properties[dmGui::PROPERTY_EULER];
3051 node.m_Properties[dmGui::PROPERTY_PREV_EULER] = euler;
3052 dmVMath::Quat r = dmVMath::EulerToQuat(euler.getXYZ());
3053 node.m_Properties[dmGui::PROPERTY_ROTATION] = dmVMath::Vector4(r);
3054 }
3055
3056 static inline bool Vec3Equals(const uint32_t* a, const uint32_t* b)
3057 {

Callers 1

CheckEulerFunction · 0.70

Calls 3

EulerToQuatFunction · 0.50
Vector4Class · 0.50
getXYZMethod · 0.45

Tested by

no test coverage detected