Utility/Node: Get[Position|Rotation|Scale) now defaults to local space

This commit is contained in:
Lynix
2019-12-12 09:56:43 +01:00
parent bcc10a1ee2
commit 1dbe71474d
4 changed files with 6 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ namespace Ndk
{
WidgetEntry& entry = m_widgetEntries[index];
Nz::Vector3f pos = entry.widget->GetPosition();
Nz::Vector3f pos = entry.widget->GetPosition(Nz::CoordSys_Global);
Nz::Vector2f size = entry.widget->GetSize();
entry.box.Set(pos.x, pos.y, pos.z, size.x, size.y, 1.f);