Skip to content

Commit

Permalink
feat: ✨ Get global bounding box calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Klein committed May 21, 2023
1 parent 94672fd commit e4c90c7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/Visuals/Extensions/VisualInstance3DExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Godot;

namespace GoDough.Visuals.Extensions {
public static class VisualInstance3DExtensions {
public static Aabb GetGlobalAabb(this VisualInstance3D visualInstance3D) {
return visualInstance3D.GlobalTransform * visualInstance3D.GetAabb();
}
}
}

0 comments on commit e4c90c7

Please sign in to comment.