ViewportFrame and workspace interpret Size differently when rendering Ball parts

When executing the following Localscript:

-- put in StarterCharacterScripts
local player=game:GetService("Players").LocalPlayer

local part=Instance.new("Part",workspace)
part.Size=Vector3.new(2,10,2) -- X~=Y and Y~=Z
part.Position+=Vector3.new(0,5,-20)
part.Anchored=true
part.Shape=Enum.PartType.Ball
part.Parent=workspace

local screenGui=Instance.new("ScreenGui",player.PlayerGui)
local viewportFrame=Instance.new("ViewportFrame",screenGui)
viewportFrame.Size=UDim2.fromScale(0.5,0.5)
viewportFrame.BackgroundTransparency=1

part:Clone().Parent=viewportFrame

I would expect the part rendered in the workspace and the one rendered in the ViewportFrame to be similar.

However, the part rendered in the ViewportFrame is elongated as if interpreting the ball Size of
(2,10,2), literally. On the other hand, the part in the workspace is rendered as if the Size was (2,2,2)

When changing the dimensions in the script to (2,2,2), the ball in the ViewportFrame looks similar to the one in the workspace.

I first noticed this today, 2023-07-23 20:00 GMT+1.

The difference does not occur for a cylinder part, only a ball.

3 Likes

Thanks for the report! I filed a ticket in our internal database and we’ll follow up when we have an update for you.

3 Likes