
Wed, 06/26/2024 - 04:57
Forums:
Dear developer:
In my project, there are 6 shapes. And I try to detect the collide sitituaiton in animation. One shape is fixed, and other shapes are keep moving. Each shape have a BVH_Box. After shapes moved, I don't want to recompute the shape's BVH, the cost is expensive. I want to apply the gp_Trsf of the shape to change the postion of BVH_Box. Is this can do? If yes, how?
Wed, 06/26/2024 - 09:20
BVH_Box
defines an Axes-Aligned Bounding Box (AABB). Transformed AABB could be computed as new AABB based on transformed 8 corners of original AABB (seeBnd_Box::Transformed()
, for example) - it is not the same as computing AABB from shape at new location (transformed AABB will be larger and less efficient.Normally, one would not transform AABB or BVH, but rather implement traverse that would consider transformation in traversal math.
Fri, 06/28/2024 - 04:33
Thanks for reply. I tried this, such as:
Am I right?