Clamp 3D Tileset to ground

Hello, I tried to reproduce this sandcastle example using my own tileset data, except that the tileset’s root keeps showing as ‘undefined’ so I checked the contents again in the console and found out that root was specified using underscore (such as _root) so I changed the code accordingly but I still got the same error. Could you please help me understand why is this happening.