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

Method SetScale

src/Nazara/Utility/Node.cpp:533–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531 }
532
533 void Node::SetScale(const Vector3f& scale, CoordSys coordSys)
534 {
535 switch (coordSys)
536 {
537 case CoordSys_Global:
538 if (m_parent && m_inheritScale)
539 m_scale = scale / (m_initialScale * m_parent->GetScale());
540 else
541 m_scale = scale / m_initialScale;
542 break;
543
544 case CoordSys_Local:
545 m_scale = scale;
546 break;
547 }
548
549 InvalidateNode();
550 }
551
552 void Node::SetScale(float scale, CoordSys coordSys)
553 {

Callers 6

LuaBinding_UtilityMethod · 0.45
DrawMethod · 0.45
ProcessMethod · 0.45
AnimateSkeletonMethod · 0.45
EnterMethod · 0.45
CreateSpaceShipMethod · 0.45

Calls 1

GetScaleMethod · 0.45

Tested by

no test coverage detected