Scaling btHeightfieldTerrainShape (setLocalScaling)

tdc
Posts: 3
Joined: Sun Sep 16, 2012 8:14 pm

Scaling btHeightfieldTerrainShape (setLocalScaling)

Post by tdc »

Hi,
as soon as I use setLocalScaling on my btHeightfieldTerrainShape other objects wont collide with it anymore. Even if I just use a small factor like 1.1 it doesn't work at all. It shouldn't be because of min and max height because I set to other values so that the resulting vertices are in range (but looking at the source code it seems like they get scaled anyway). If I scale the other objects in turn and leave the scale of the terrain at 1 they collide with it.
Any hints on why this happens and how I can solve this?