How would I get the Vector3 coordinates in worldspace of a point offset from the axis of a part that is oriented at an angle? It’s easy enough to get that by subtracting/adding from the position of a part at 90 degree angles. Say I wanted get the coordinates of a point that is + 5 studs the brick’s Y axis and -10 studs on its X axis, but the part is angled.
Slightly confused by what you mean by this? Do you mean that, let’s say we have a Part (called ‘A’) and we want to get a worldspace Vec3 position (called ‘B’) located 5 studs above and -10 studs to the side of Part A, but orientated to its rotational matrix? If so…
local B = (A.CFrame * CFrame.new(-10, 5, 0)).p --> returns a CFrame, so we use the .p to get Vec3
-- OR
local B = A.CFrame:pointToWorldSpace(Vector3.new(-10, 5, 0)) --> returns a Vec3
3 Likes