I ran into a problem and was wondering if anyone could help me out.
My problem concerns the scaling of a btGImpactMeshShape.
The bullet version I am using is 2.73.
What I am doing is the following:
Code: Select all
btGImpactMeshShape *shape = getShape(); // created with scale 1.0, 1.0, 1.0
shape->setLocalScaling(getScale()); // scale = 2.0, 2.0, 2.0
shape->updateBound();
The updateBound function of btGImpactMeshShapePart calls it's own calcLocalAABB function which in turn calls the update function of it's btGImpactQuantizedBvh instance.
The update function of btGImpactQuantizedBvh calls it's refit function.
The refit function updates the bounds of the nodes using the setNodeBound function of it's btQuantizedBvhTree instance.
The node bounds are quantized, but the problem is that the quantization bounds (m_global_bound) have not been updated, so all values are being clamped.
Can anyone tell me if this is a bug ? Or am I just using it incorrectly ?
Regards,
Ben Meijering