]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/terrain.cpp
Adjust terrain pick geometry so it's possible to pick tracks on top of it
[r2c2.git] / source / libr2c2 / terrain.cpp
index c89d0f8cf20621df2e5befa06f4d57b404c7c1c3..8e0c60edb76276e8a49bf4f0043073556f64c10f 100644 (file)
@@ -63,7 +63,7 @@ void Terrain::set_size(unsigned w, unsigned h)
 
        delete shape;
        float ts = type.get_tile_size();
-       Vector dim(width*ts, height*ts, ts);
+       Vector dim(width*ts, height*ts, ts/10.0f);
        shape = new Geometry::TransformedShape<float, 3>(
                Geometry::Box<float>(dim),
                Transform::translation(dim/2.0f));