I think the floor is the lower side of the cube.
The floor position is:
1. z value of the cube's origin place vector (height from world 0,0,0 point)
plus
2. the distance of the cube's origin from the lower side.
This sum gives surface's ground zero in world coordinates.
IMHO
(Naturaly substitute the plus operation with minus :))
Last edited by Aku_Aku; 08/27/11 19:39.