Hi! I was wandering if someone could help me with a problem I am having its more of a mathematical one. Say for example i want to get the x edges of a part i could do this:
local part = --some random part
local partSize = part.Size
local partPosition = part.Position
local xEdges = {}
xEdges[1] = partPosition.X - partSize.X/2
xEdges[2] = partPosition.X + partSize.X/2
--this would be fine if the orientation on the x axis is 0
--[[
however if this part is rotated on the x axis it will be
wrong because the x axis is not aligned with the true axis in
world space
]]--