check in the code
the Terrain cpp should be refactor make more extensible! and logic