1 |
Calculate OBB centroid (). |
2 |
Identify OBB four front corners and four back corners.
|
3 |
Calculate centroid of front corners () and back corners (). |
4 |
From front corners, front left and front right corners are:
|
5 |
From back corners, back left and back right corners are:
|
6 |
For front, the front left bottom corner has a lower z-axis value and the other is the front left top corner. The same logic is applied to front right corners, back left corners, and back right corners. |
7 |
Calculate foot length, width, and height and validated with average foot dimensions ().
|
8 |
OBB toe point is the center of front bottom two points () and heel point is the center of back bottom two points (). |