From: Mikko Rasa Date: Tue, 25 Mar 2014 23:56:27 +0000 (+0200) Subject: Adjust terrain pick geometry so it's possible to pick tracks on top of it X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=2bf64dc970d4157be1507b20ae637f048e19e5ec;p=r2c2.git Adjust terrain pick geometry so it's possible to pick tracks on top of it --- diff --git a/source/libr2c2/terrain.cpp b/source/libr2c2/terrain.cpp index c89d0f8..8e0c60e 100644 --- a/source/libr2c2/terrain.cpp +++ b/source/libr2c2/terrain.cpp @@ -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( Geometry::Box(dim), Transform::translation(dim/2.0f));