I’m trying to get the two end points along the y axis for a decal component, basically like this:
However, when I change the rotation of the box, it obviously doesn’t work because it messes with the extents. To work around that I’ve saved the box extents from the starting 90 degree angle and used those to draw a debug box. The debug box works perfect, if I could find it’s vertices it would serve me well.
I’ve tried for about 2 days now to rotate the extents and the origin points but can’t seem to gather the locations of those two positions when the box is rotated.
Does anyone know the calculations for actually getting the point locations after a rotation using the origin and extent? Any tips would be helpful, thanks!