Hi,

There is an error in bounds calculation (minX, maxX, minY, maxY, minZ,
maxZ) for ObjectContainer3D: it does not take into account its
children transformations.

Proposal:
-------------
It would help moving Entity's "bounds" property (and related protected
methods) to ObjectContainer3D and adding a "transformBy(m :
Matrix3D) : BoundingVolumeBase" method to BoundingVolumeBase class.

This method would perform the provided transformation against the aabb
vertices (aabbPoints) and calculate the bounds of the resulting box.

Then in "updateBounds" method I whould add
child.bounds.transformBy(child.transform) to calculate transformed
aabb of each child in the loop for getting the min max in parent's
coordinates.

Regards.

Reply via email to