Errors while implementing layer based traversability
by Jinnie Ong · in Torque 3D Professional · 09/16/2009 (4:23 am) · 2 replies
Link to resource: http://www.garagegames.com/community/resource/view/17423
First off, thanks for the wonderful resource!
I've got a problem getting it to work in my project though. From the file locations, I'm guessing this is based on an earlier beta of T3D. In beta 5 (which I'm currently using), trying to compile the changes gives me two errors:
1) In terrmaterial.cpp
'TerrainMaterial' : illegal member initialization: 'mDetailScale' is not a base or member.
A hack would be to just declare it, but I'm not too sure if that'll have repercussions down the line.
2) In shapebase.cpp
'getMaterialIndex' : is not a member of 'TerrainBlock'
WaterBlock and some other terrain features seem to have their own implementation of getMaterialIndex; only TerrainBlock seems to be missing it.
Thanks!
First off, thanks for the wonderful resource!
I've got a problem getting it to work in my project though. From the file locations, I'm guessing this is based on an earlier beta of T3D. In beta 5 (which I'm currently using), trying to compile the changes gives me two errors:
1) In terrmaterial.cpp
'TerrainMaterial' : illegal member initialization: 'mDetailScale' is not a base or member.
A hack would be to just declare it, but I'm not too sure if that'll have repercussions down the line.
2) In shapebase.cpp
'getMaterialIndex' : is not a member of 'TerrainBlock'
WaterBlock and some other terrain features seem to have their own implementation of getMaterialIndex; only TerrainBlock seems to be missing it.
Thanks!
Associate Konrad Kiss
Bitgap Games