TreeCollision / scaling problem

unclepauly

08-11-2006 23:02:04

i create my terrian node, scale it to the size i need, and then attach the rigid body.

then, i create a few more nodes (they are in fact trees), and add these as children nodes to the terrain node. i then create rigid bodies for these as well. the rigid bodies for the terrian and the trees are TreeCollisions.

the trees are children of the terrain because i have a .scene file containing the positions of the trees, and of course these positions are relative to the parent (ie the terrian).

the problem is when the terrain is scaled. although the visual meshes of the trees are re-positioned correctly, relative to the terrian, the rigid bodies are not. the rigid bodies are positioned as if the terrain has not been scaled at all.