* different collision box for fireflies so they now hover above the ground
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Thu, 21 Jul 2011 13:40:00 +0000 (15:40 +0200)
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Thu, 21 Jul 2011 13:40:00 +0000 (15:40 +0200)
src/content_sao.cpp

index aeeafc2f88d649cecd6e8825a22d007a36d11098..0b81855c16aec55f0c9fffaa685e9ed411ba86ca 100644 (file)
@@ -809,7 +809,7 @@ void FireflySAO::step(float dtime, bool send_recommended)
                Move it, with collision detection
        */
 
-       core::aabbox3d<f32> box(-BS/3.,0.0,-BS/3., BS/3.,BS*2./3.,BS/3.);
+       core::aabbox3d<f32> box(-BS/3.,-BS*2/3.0,-BS/3., BS/3.,BS*4./3.,BS/3.);
        collisionMoveResult moveresult;
        // Maximum movement without glitches
        f32 pos_max_d = BS*0.25;