Model GetBoundingBox

Preface : This is really an engine request rather than needing support, but Roblox is obscure about who it gives access to making feature / engine request posts

How can I get the neutral Model bounding box ? GetBoundingBox has its CFrame orientation offset by WorldPivot (very annoying)…

local cf, s = model:GetBoundingBox()
local modelPivot = model:GetPivot()

local trueModelCF = cf * (modelPivot - modelPivot.Position):Inverse()

This is a lot of unnecessary work in order to get something that BoundingBox should be returning by default… Why on EARTH is it offset by Pivot ?!

9 Likes