]> git.tdb.fi Git - r2c2.git/commitdiff
Adjust terrain pick geometry so it's possible to pick tracks on top of it
authorMikko Rasa <tdb@tdb.fi>
Tue, 25 Mar 2014 23:56:27 +0000 (01:56 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 26 Mar 2014 00:09:03 +0000 (02:09 +0200)
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));