I’m trying to get the positions of the vertices of this part **at any orientation**

What would be the best way to go about this?

I’ve provided a diagram to show what I mean

So there are 8 vertices on this part that I want the position of

I’m trying to get the positions of the vertices of this part **at any orientation**

What would be the best way to go about this?

I’ve provided a diagram to show what I mean

So there are 8 vertices on this part that I want the position of

2 Likes

2 Likes

For more complex polynomials I’m not too sure. But for your specific example, you could probably just offset from the base position of the part to get each of the four corners.

```
local partCF = workspace.somePart.CFrame
local partSize = workspace.somePart.Size
local topLeft = partCF * CFrame.new(-partSize.X/2, partSize.Y/2, 0)
local topRight = partCF * CFrame.new(partSize.X/2, partSize.Y/2, 0)
local bottomRight = partCF * CFrame.new(partSize.X/2, -partSize.Y/2, 0)
local bottomLeft = partCF * CFrame.new(-partSize.X/2, -partSize.Y/2, 0)
```

1 Like