BulletBodyNode.addShape does not scale down

I am using BulletBodyNode.addShape(BulletTriangleMeshShape, TransformState) to set up a new collision model. My TransformState for the visual mesh is

T:(scale 0.001)

But the collision mesh shown from BulletDebugNode does not seem to scale down.
Is scaling allowed here?

Green wireframe: Unscaled collision mesh; White block: Scaled visual mesh

I don’t know whether it’s intended to work at all, but generally speaking, even when it does theoretically work, it’s wise to avoid scaling with collision- and physics- shapes, I believe.

If feasible, try modifying the shape itself rather than scaling it.

1 Like

Thanks. I switched to Geom.transformVertices.

1 Like