Members - Reputation: 659
Posted 18 February 2013 - 06:22 AM
In the first function, you can get the extents without looking at all four corners. Find the dot product of the axis with the chassis position first, without adding the corner. Then the size on that axis is width*abs(dot(box x, axis)) + height*abs(dot(box y, axis)).