You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a GameObject with the ModelRenderer is transformed in the editor to be scaled beyond 1, the BBox returned by GetBounds() is incorrect in different ways depending on when you run GetBounds().
When this box is scaled to 1, its bounding box is [mins -25,-25,-25, maxs 25,25,25] but when scaled to 5, its bounding box is [mins -625,-625,-625, maxs 625,625,625]
However, the bounding box for a GameObject with the BoxCollider is always a constant [mins -0.5,-0.5,-0.5, maxs 0.5,0.5,0.5] regardless of the transformation or by changing the BoxCollider's "size" parameters.
To Reproduce
Create a GameObject in a Scene and add a ModelRenderer or BoxCollider component to it along with this custom component.
I've been meaning to look into this there are several things broken about GameObject.GerBounds(). But since people may rely on this broken behaviour I wanted to wait til after the tech jam.
Describe the bug
When a GameObject with the ModelRenderer is transformed in the editor to be scaled beyond 1, the BBox returned by GetBounds() is incorrect in different ways depending on when you run GetBounds().
When this box is scaled to 1, its bounding box is
[mins -25,-25,-25, maxs 25,25,25]
but when scaled to 5, its bounding box is[mins -625,-625,-625, maxs 625,625,625]
However, the bounding box for a GameObject with the BoxCollider is always a constant
[mins -0.5,-0.5,-0.5, maxs 0.5,0.5,0.5]
regardless of the transformation or by changing the BoxCollider's "size" parameters.To Reproduce
Create a GameObject in a Scene and add a ModelRenderer or BoxCollider component to it along with this custom component.
Expected behavior
A
[mins -25,-25,-25, maxs 25,25,25]
box scaled by 5 should be[mins -125,-125,-125, maxs 125,125,125]
.Media/Files
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: