MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / GetRotation

Method GetRotation

src/Nazara/Utility/Node.cpp:173–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172
173 Quaternionf Node::GetRotation(CoordSys coordSys) const
174 {
175 switch (coordSys)
176 {
177 case CoordSys_Global:
178 if (!m_derivedUpdated)
179 UpdateDerived();
180
181 return m_derivedRotation;
182
183 case CoordSys_Local:
184 return m_rotation;
185 }
186
187 NazaraError("Coordinate system out of enum (0x" + String::Number(coordSys, 16) + ')');
188 return Quaternionf();
189 }
190
191 Vector3f Node::GetScale(CoordSys coordSys) const
192 {

Callers 15

UpdateViewMatrixMethod · 0.45
OnUpdateMethod · 0.45
OnUpdateMethod · 0.45
OnUpdateMethod · 0.45
AddToRenderQueueMethod · 0.45
SetRotationMethod · 0.45
SetTransformMatrixMethod · 0.45
Billboard.cppFile · 0.45
RigidBody2D.cppFile · 0.45
EQUALITYFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected